isAuthorised
talawa-api • Docs
talawa-api / utilities/PII/isAuthorised / isAuthorised
Function: isAuthorised()
> isAuthorised(requestingUser
, requestedUser
): boolean
Checks if the requesting user is authorized to access or modify the requested user's data.
Parameters
• requestingUser: User
The user making the request.
• requestedUser: User
The user whose data is being requested or modified.
Returns
boolean
true
if the requesting user is authorized, false
otherwise.