add saveCategoruSettings mutation to schema

This commit is contained in:
Moriz Wahl 2022-09-05 17:41:21 +02:00
parent b80a9fdff8
commit b8ac4cc3ca
2 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ export default shield(
GenerateInviteCode: isAuthenticated,
switchUserRole: isAdmin,
markTeaserAsViewed: allow,
saveCategorySettings: isAuthenticated,
},
User: {
email: or(isMyOwn, isAdmin),

View File

@ -220,4 +220,6 @@ type Mutation {
unblockUser(id: ID!): User
switchUserRole(role: UserRole!, id: ID!): User
saveCategorySettings(activeCategories: [String]): Boolean
}