LogoRobo.js
Packages@robojs/mock

hasPermission()

Function: hasPermission()

function hasPermission(permissions, flag): boolean

Check if a permission bitfield has a specific permission

Parameters

ParameterTypeDescription
permissionsbigintThe permission bitfield
flagbigintThe permission flag to check

Returns

boolean

true if the permission is set

On this page