talawa-api / Exports / resolvers/Mutation/acceptAdmin
Module: resolvers/Mutation/acceptAdmin
Table of contents
Variables
Variables
acceptAdmin
• Const
acceptAdmin: MutationResolvers
["acceptAdmin"
]
This function accepts the admin request sent by a user.
Param
parent of current request
Param
payload provided with the request
Param
context of entire application
Remarks
The following checks are done:
- Whether the user exists
- Whether the user has appProfile or not (if not, then the user is not a superadmin).
- Whether the user accepting the admin request is a superadmin or not.