Skip to content

Commit

Permalink
restrict admin send login link to only admin
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylhein committed Dec 5, 2024
1 parent 6efb4a4 commit aead30f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/graphql/types/user.mutation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ UserMutation:
AdminUserSendLoginLink:
type: AdminUserLoginLinkMutationPayload!
description: 'Send a magic login link to a user.'
access: '@=hasRole("ROLE_ADMIN")'
resolve: '@=mutation("App\\GraphQl\\Mutation\\User\\AdminUserSendLoginLinkMutation", args["userId"])'
args:
userId: UserId!
Expand Down

0 comments on commit aead30f

Please sign in to comment.