summaryrefslogtreecommitdiff
path: root/client/js/controllers
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2019-04-27 02:47:03 +0700
committerHunternif <hunternif@gmail.com>2019-04-27 03:01:41 +0700
commit9b59b5f3b095a08a7b871c32554822a764e778ee (patch)
treed3530145344cf261719c6e41fc97f1fc70e74974 /client/js/controllers
parentbef4da79db44d88f8e20ffbd5165e417a13437c4 (diff)
client: Metrics menu on post list header
Diffstat (limited to 'client/js/controllers')
-rw-r--r--client/js/controllers/post_list_controller.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/js/controllers/post_list_controller.js b/client/js/controllers/post_list_controller.js
index 6d255c4..443e25d 100644
--- a/client/js/controllers/post_list_controller.js
+++ b/client/js/controllers/post_list_controller.js
@@ -35,6 +35,7 @@ class PostListController {
enableSafety: api.safetyEnabled(),
canBulkEditTags: api.hasPrivilege('posts:bulk-edit:tags'),
canBulkEditSafety: api.hasPrivilege('posts:bulk-edit:safety'),
+ canViewMetrics: api.hasPrivilege('metrics:list'),
bulkEdit: {
tags: this._bulkEditTags,
},
@@ -135,8 +136,8 @@ class PostListController {
Object.assign(pageCtx, {
canViewPosts: api.hasPrivilege('posts:view'),
canBulkEditTags: api.hasPrivilege('posts:bulk-edit:tags'),
- canBulkEditSafety:
- api.hasPrivilege('posts:bulk-edit:safety'),
+ canBulkEditSafety: api.hasPrivilege('posts:bulk-edit:safety'),
+ canViewMetrics: api.hasPrivilege('metrics:list'),
bulkEdit: {
tags: this._bulkEditTags,
relations: this._ctx.parameters.relations,