mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
add saveCategoruSettings mutation to schema
This commit is contained in:
parent
b80a9fdff8
commit
b8ac4cc3ca
@ -178,6 +178,7 @@ export default shield(
|
||||
GenerateInviteCode: isAuthenticated,
|
||||
switchUserRole: isAdmin,
|
||||
markTeaserAsViewed: allow,
|
||||
saveCategorySettings: isAuthenticated,
|
||||
},
|
||||
User: {
|
||||
email: or(isMyOwn, isAdmin),
|
||||
|
||||
@ -220,4 +220,6 @@ type Mutation {
|
||||
unblockUser(id: ID!): User
|
||||
|
||||
switchUserRole(role: UserRole!, id: ID!): User
|
||||
|
||||
saveCategorySettings(activeCategories: [String]): Boolean
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user