diff options
| author | Andrew Dolgov <noreply@fakecake.org> | 2021-11-10 20:44:51 +0300 |
|---|---|---|
| committer | Andrew Dolgov <noreply@fakecake.org> | 2021-11-10 20:44:51 +0300 |
| commit | 9e8d69739f21e5ac85977d57a2a6c961e318c26e (patch) | |
| tree | 0fc52f7be644b5f86e236cc7cb8f4dc4351da8f9 /prefs.php | |
| parent | 7a52560e4e3b0652d32645b60ae13e4904f606bc (diff) | |
add two helper account access levels:
- read only - can't subscribe to more feeds, feed updates are skipped
- disabled - can't login
define used access levels as UserHelper constants and refactor code to
use them instead of hardcoded numbers
Diffstat (limited to 'prefs.php')
| -rw-r--r-- | prefs.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -148,7 +148,7 @@ style="padding : 0px" href="backend.php?op=pref-labels" title="<i class='material-icons'>label_outline1</i> <?= __('Labels') ?>"></div> - <?php if ($_SESSION["access_level"] >= 10) { ?> + <?php if ($_SESSION["access_level"] >= UserHelper::ACCESS_LEVEL_ADMIN) { ?> <div id="usersTab" dojoType="dijit.layout.ContentPane" style="padding : 0px" href="backend.php?op=pref-users" |