aboutsummaryrefslogtreecommitdiff
path: root/src/modules/announcements.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2023-01-02 16:27:32 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2023-01-02 16:27:32 +0000
commitb5d4c43bc2c59fff2e57fcc091c62481e677c973 (patch)
tree043a6814763bdd36c3552e09fe2f51912438caae /src/modules/announcements.js
parent4361e15377bff93b9f5454264a2b2c7e21e81a8c (diff)
parentb65a89c8225289708fc0e97f3c2cbe66511473cb (diff)
Merge branch 'tusooa/announcements-priv' into 'develop'
Make announcements available to all with privileges See merge request pleroma/pleroma-fe!1716
Diffstat (limited to 'src/modules/announcements.js')
-rw-r--r--src/modules/announcements.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/announcements.js b/src/modules/announcements.js
index e4d2d2b0..4504263b 100644
--- a/src/modules/announcements.js
+++ b/src/modules/announcements.js
@@ -49,7 +49,7 @@ const announcements = {
}
const currentUser = store.rootState.users.currentUser
- const isAdmin = currentUser && currentUser.role === 'admin'
+ const isAdmin = currentUser && currentUser.privileges.includes('announcements_manage_announcements')
const getAnnouncements = async () => {
if (!isAdmin) {