talawa-api / Exports / resolvers/Mutation/blockUser
Module: resolvers/Mutation/blockUser
Table of contents
Variables
Variables
blockUser
• Const
blockUser: MutationResolvers
["blockUser"
]
This function enables blocking a user.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the organization exists
- If the user exists
- If the user is an admin of organization
- If the user to be blocked is already blocked by the organization