aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/user/profile.phtml15
1 files changed, 11 insertions, 4 deletions
diff --git a/app/views/user/profile.phtml b/app/views/user/profile.phtml
index 87aa25b11..df43642dd 100644
--- a/app/views/user/profile.phtml
+++ b/app/views/user/profile.phtml
@@ -15,13 +15,20 @@
<label class="group-name" for="current_user"><?php echo _t('conf.user.current'); ?></label>
<div class="group-controls">
<input id="current_user" type="text" disabled="disabled" value="<?php echo Minz_Session::param('currentUser', '_'); ?>" />
- <label class="checkbox" for="is_admin">
- <input type="checkbox" id="is_admin" disabled="disabled" <?php echo FreshRSS_Auth::hasAccess('admin') ? 'checked="checked" ' : ''; ?>/>
- <?php echo _t('conf.user.is_admin'); ?>
- </label>
</div>
</div>
+ <?php if (FreshRSS_Auth::hasAccess('admin')) { ?>
+ <div class="form-group">
+ <div class="group-controls">
+ <label class="checkbox" for="is_admin">
+ <input type="checkbox" id="is_admin" disabled checked />
+ <?php echo _t('conf.user.is_admin'); ?>
+ </label>
+ </div>
+ </div>
+ <?php } ?>
+
<div class="form-group">
<label class="group-name" for="email"><?php echo _t('conf.profile.email'); ?></label>
<div class="group-controls">