Make announcements available to all with privileges

This commit is contained in:
tusooa 2022-12-24 12:17:09 -05:00
commit b65a89c822
No known key found for this signature in database
GPG key ID: 7B467EDE43A08224
5 changed files with 10 additions and 4 deletions

View file

@ -27,6 +27,9 @@ const Announcement = {
...mapState({
currentUser: state => state.users.currentUser
}),
canEditAnnouncement () {
return this.currentUser && this.currentUser.privileges.includes('announcements_manage_announcements')
},
content () {
return this.announcement.content
},