Make announcements available to all with privileges
This commit is contained in:
parent
25e628efe2
commit
b65a89c822
5 changed files with 10 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue