diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-01-02 16:27:32 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-01-02 16:27:32 +0000 |
| commit | b5d4c43bc2c59fff2e57fcc091c62481e677c973 (patch) | |
| tree | 043a6814763bdd36c3552e09fe2f51912438caae /src/modules/announcements.js | |
| parent | 4361e15377bff93b9f5454264a2b2c7e21e81a8c (diff) | |
| parent | b65a89c8225289708fc0e97f3c2cbe66511473cb (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.js | 2 |
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) { |
