isUserInRole
All users in any Brixxbox workspace shoyuld have been assigned a specific user role. isUserInRole takes a string argument role. On the basis of this role parameter, it determines whether a logged user
brixxApi.isUserInRole("Management");Parameters
Example Usage
if(brixxApi.isUserInRole("Admin")){
brixxApi.readOnlyMode(false);
console.log("raghib")
}
else{
brixxApi.readOnlyMode();
}Last updated