Skip to content

Latest commit

 

History

History
38 lines (21 loc) · 1.28 KB

utilities_adminCheck.md

File metadata and controls

38 lines (21 loc) · 1.28 KB

talawa-api / Exports / utilities/adminCheck

Module: utilities/adminCheck

Table of contents

Functions

Functions

adminCheck

adminCheck(userId, organization): Promise<void>

If the current user is an admin of the organisation, this function returns true otherwise it returns false.

Parameters

Name Type Description
userId string | ObjectId Current user id.
organization InterfaceOrganization Organization data of InterfaceOrganization type.

Returns

Promise<void>

True or False.

Remarks

This is a utility method.

Defined in

src/utilities/adminCheck.ts:14