cleaned up, refactored and implemented new <ModerationTools>
This commit is contained in:
parent
3443ddddbb
commit
e56ea2dbeb
23 changed files with 1124 additions and 975 deletions
|
|
@ -29,7 +29,7 @@ export const useAnnouncementsStore = defineStore('announcements', {
|
|||
const currentUser = window.vuex.state.users.currentUser
|
||||
const isAdmin =
|
||||
currentUser &&
|
||||
currentUser.privileges.includes('announcements_manage_announcements')
|
||||
currentUser.privileges.has('announcements_manage_announcements')
|
||||
|
||||
const getAnnouncements = async () => {
|
||||
if (!isAdmin) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue