diff options
| author | Hunternif <hunternif@gmail.com> | 2025-02-16 19:15:04 +0000 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2025-02-16 19:15:04 +0000 |
| commit | 013055187ab28a483acde00f8390e49a44d8b9e2 (patch) | |
| tree | 1e761234bd72817228190d31a669519af981f790 /client/js | |
| parent | 399c6a9b78b31469a8f2fe7c6f50f1fda0027472 (diff) | |
client: hide safety buttons if user doesn't have privilege
Diffstat (limited to 'client/js')
| -rw-r--r-- | client/js/controllers/post_list_controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/js/controllers/post_list_controller.js b/client/js/controllers/post_list_controller.js index 0146e9e..9e5d6d5 100644 --- a/client/js/controllers/post_list_controller.js +++ b/client/js/controllers/post_list_controller.js @@ -44,6 +44,8 @@ class PostListController { parameters: ctx.parameters, isLoggedIn: api.isLoggedIn(), enableSafety: api.safetyEnabled(), + canListSketchy: api.hasPrivilege("posts:list:sketchy"), + canListUnsafe: api.hasPrivilege("posts:list:unsafe"), canBulkEditTags: api.hasPrivilege("posts:bulk-edit:tags"), canBulkEditSafety: api.hasPrivilege("posts:bulk-edit:safety"), canViewMetrics: api.hasPrivilege("metrics:list"), |