isAuthorised
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
The user making the request.
requestedUser
The user whose data is being requested or modified.
Returns
boolean
true
if the requesting user is authorized, false
otherwise.