isUserInRole
All users in any Gebra Suite 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 u
app.isUserInRole("Management");Parameters
Example Usage
if (app.isUserInRole("Admin")) {
app.readOnlyMode(false);
console.log("raghib");
} else {
app.readOnlyMode();
}Return Values
Last updated