talawa-api / Exports / resolvers/Mutation/rejectAdmin
Module: resolvers/Mutation/rejectAdmin
Table of contents
Variables
Variables
rejectAdmin
• Const
rejectAdmin: MutationResolvers
["rejectAdmin"
]
This function enables to reject an admin.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- If the user exists 2.If the user has appProfile or not (if not, then the user is not a superadmin).
- If the user is the SUPERADMIN of the organization.
- If the user to be removed exists.