diff options
| author | 2020-01-06 20:28:04 +0100 | |
|---|---|---|
| committer | 2020-01-06 20:28:04 +0100 | |
| commit | 3c099c78537020eae3b6fe060fbe86088e996c83 (patch) | |
| tree | 647ee7313f609577f98b8477e814f2e7743c06f7 /app/views/user/manage.phtml | |
| parent | d455783a63e77c3abce76b85f68c51338c1b81d1 (diff) | |
Add an admin flag on users (#2709)
Now FRSS supports more than one admin. Admins have the same rights as
the default user. Admins can promote or demote other users. The default
user is considered as an admin even if it does not have the admin flag
enabled.
See #2096
Diffstat (limited to 'app/views/user/manage.phtml')
| -rw-r--r-- | app/views/user/manage.phtml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/views/user/manage.phtml b/app/views/user/manage.phtml index 951544248..6ab31e6c6 100644 --- a/app/views/user/manage.phtml +++ b/app/views/user/manage.phtml @@ -26,6 +26,15 @@ </div> </div> + <div class="form-group"> + <div class="group-controls"> + <label for="new_user_is_admin" class="checkbox"> + <input type="checkbox" name="new_user_is_admin" id="new_user_is_admin"> + <?= _t('admin.user.is_admin') ?> + </label> + </div> + </div> + <?php if ($this->show_email_field) { ?> <div class="form-group"> <label class="group-name" for="new_user_email"> @@ -62,6 +71,7 @@ <thead> <tr> <th><?= _t('admin.user.username') ?></th> + <th><?= _t('admin.user.is_admin') ?></th> <th><?= _t('admin.user.email') ?></th> <th><?= _t('admin.user.language') ?></th> <th><?= _t('admin.user.feed_count') ?></th> @@ -74,6 +84,7 @@ <?php foreach ($this->users as $username => $values) : ?> <tr> <td><?= $username ?></td> + <td><?= $values['is_admin'] ? '✔' : ' ' ?></td> <td><?= $values['mail_login'] ?></td> <td><?= _t("gen.lang.{$values['language']}") ?></td> <td><?= format_number($values['feed_count']) ?></td> |
