From ef4806e142c313942f2df1a43a699c72e45d4c42 Mon Sep 17 00:00:00 2001 From: rr- Date: Thu, 28 Jul 2016 22:05:35 +0200 Subject: [PATCH] client/posts: display edit link for tagless posts --- client/html/post_readonly_sidebar.tpl | 51 +++++++++++-------- .../controls/post_readonly_sidebar_control.js | 1 + 2 files changed, 31 insertions(+), 21 deletions(-) diff --git a/client/html/post_readonly_sidebar.tpl b/client/html/post_readonly_sidebar.tpl index 351d93d..0b096a8 100644 --- a/client/html/post_readonly_sidebar.tpl +++ b/client/html/post_readonly_sidebar.tpl @@ -62,26 +62,35 @@ diff --git a/client/js/controls/post_readonly_sidebar_control.js b/client/js/controls/post_readonly_sidebar_control.js index 72db0be..2be4d6b 100644 --- a/client/js/controls/post_readonly_sidebar_control.js +++ b/client/js/controls/post_readonly_sidebar_control.js @@ -24,6 +24,7 @@ class PostReadonlySidebarControl extends events.EventTarget { getTagCategory: this._getTagCategory, getTagUsages: this._getTagUsages, canListPosts: api.hasPrivilege('posts:list'), + canEditPosts: api.hasPrivilege('posts:edit'), canViewTags: api.hasPrivilege('tags:view'), }));