summaryrefslogtreecommitdiffstats
path: root/application/views/header.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/views/header.php')
-rw-r--r--application/views/header.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/application/views/header.php b/application/views/header.php
index be0cffdab..40bb6e6a3 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -41,7 +41,9 @@ if (is_cli_client() && !isset($force_full_html)) {
<li class="dropdown">
<a class="dropdown-toggle" href="#" data-toggle="dropdown">Login <b class="caret"></b></a>
<div class="dropdown-menu" style="padding: 15px;">
- <p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
+ <?php if(auth_driver_function_implemented("can_reset_password")) { ?>
+ <p><?php echo anchor("user/reset_password", "Forgot your password?"); ?></p>
+ <?php } ?>
<?php echo form_open("user/login"); ?>
<input type="text" name="username" placeholder="Username" class="input-medium">
<input type="password" name="password" placeholder="Password" class="input-medium">
@@ -56,7 +58,9 @@ if (is_cli_client() && !isset($force_full_html)) {
<?php if(isset($username) && $username) { ?>
<li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li>
<li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li>
- <li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
+ <?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
+ <li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
+ <?php } ?>
<?php } ?>
</ul>
</div>