Retrict some query and mutation to only session
Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
@@ -7,7 +7,7 @@ type Invitation implements Node {
|
||||
|
||||
permission(action: String!): Boolean!
|
||||
@goField(forceResolver: true)
|
||||
@session(required: PRESENT)
|
||||
@authentication(required: PRESENT)
|
||||
}
|
||||
|
||||
enum InvitationStatus
|
||||
@@ -51,7 +51,7 @@ type InvitationEdge {
|
||||
|
||||
extend type Mutation {
|
||||
inviteUser(input: InviteUserInput!): InviteUserPayload
|
||||
@session(required: PRESENT)
|
||||
@authentication(required: PRESENT)
|
||||
}
|
||||
|
||||
input InviteUserInput {
|
||||
|
||||
Reference in New Issue
Block a user