|
@@ -15,13 +15,20 @@
|
|
|
<label class="group-name" for="current_user"><?php echo _t('conf.user.current'); ?></label>
|
|
<label class="group-name" for="current_user"><?php echo _t('conf.user.current'); ?></label>
|
|
|
<div class="group-controls">
|
|
<div class="group-controls">
|
|
|
<input id="current_user" type="text" disabled="disabled" value="<?php echo Minz_Session::param('currentUser', '_'); ?>" />
|
|
<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>
|
|
|
</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">
|
|
<div class="form-group">
|
|
|
<label class="group-name" for="email"><?php echo _t('conf.profile.email'); ?></label>
|
|
<label class="group-name" for="email"><?php echo _t('conf.profile.email'); ?></label>
|
|
|
<div class="group-controls">
|
|
<div class="group-controls">
|