This commit is contained in:
@@ -112,7 +112,8 @@ export default {
|
||||
let userRole = window.$gz.store.state.roles;
|
||||
|
||||
//calculate the effective rights
|
||||
//a non zero result of the bitwise calculation means true and zero means false so using !! to force it into a boolean value (contrary to some style guides that say !! is obscure but I say it saves a lot of typing)
|
||||
//a non zero result of the bitwise calculation means true and zero means false so using !! to force it into a boolean value
|
||||
//(contrary to some style guides that say !! is obscure but I say it saves a lot of typing)
|
||||
let canChange = !!(userRole & objectRoleRights.Change);
|
||||
let canReadFullRecord = !!(userRole & objectRoleRights.ReadFullRecord);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user