Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (19 loc) · 360 Bytes

File metadata and controls

27 lines (19 loc) · 360 Bytes

Permission/Role Check

Checks whether the specified user has the specified role.

Example

API.hasPermission(
    ID,
    ROLE
);

Real Example:

API.hasPermission(
    3626824,
    API.ROLE.BOUNCER
);

Returns true if user matches the role, else returns false.

Endpoint

Frontend check only, based on stored user information