mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add permissions for messages
This commit is contained in:
parent
bb8a745566
commit
ae131cc656
@ -407,6 +407,7 @@ export default shield(
|
|||||||
availableRoles: isAdmin,
|
availableRoles: isAdmin,
|
||||||
getInviteCode: isAuthenticated, // and inviteRegistration
|
getInviteCode: isAuthenticated, // and inviteRegistration
|
||||||
Room: isAuthenticated,
|
Room: isAuthenticated,
|
||||||
|
Message: isAuthenticated,
|
||||||
},
|
},
|
||||||
Mutation: {
|
Mutation: {
|
||||||
'*': deny,
|
'*': deny,
|
||||||
@ -461,6 +462,7 @@ export default shield(
|
|||||||
markTeaserAsViewed: allow,
|
markTeaserAsViewed: allow,
|
||||||
saveCategorySettings: isAuthenticated,
|
saveCategorySettings: isAuthenticated,
|
||||||
CreateRoom: isAuthenticated,
|
CreateRoom: isAuthenticated,
|
||||||
|
CreateMessage: isAuthenticated,
|
||||||
},
|
},
|
||||||
User: {
|
User: {
|
||||||
email: or(isMyOwn, isAdmin),
|
email: or(isMyOwn, isAdmin),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user