improve rbac

This commit is contained in:
knst-kotov
2021-08-17 12:14:26 +03:00
parent 9618802c6b
commit b8b7854c4c
9 changed files with 132 additions and 62 deletions

View File

@@ -23,7 +23,7 @@ type MessageResult {
}
input ShoutInput {
org: String!
org_id: Int!
slug: String!
body: String!
replyTo: String # another shout
@@ -61,10 +61,11 @@ type Mutation {
# invalidateTokenById(id: Int!): Boolean!
# requestEmailConfirmation: User!
# requestPasswordReset(email: String!): Boolean!
registerUser(email: String!, password: String!): AuthResult!
registerUser(email: String!, password: String!): AuthResult!
# shout
createShout(input: ShoutInput!): ShoutResult!
updateShout(input: ShoutInput!): ShoutResult!
deleteShout(slug: String!): Result!
rateShout(slug: String!, value: Int!): Result!
@@ -151,7 +152,7 @@ type Message {
# is publication
type Shout {
org: String!
org_id: Int!
slug: String!
author: Int!
body: String!