This commit is contained in:
2020-04-13 16:42:38 +00:00
parent 015905c74d
commit 67d77e598e
2 changed files with 68 additions and 13 deletions

View File

@@ -105,7 +105,7 @@ export default {
return o == oType;
});
//Get the AyaNova stock role rights for that object
//Get the AyaNova stock REQUIRED role rights for that object
let objectRoleRights = this.ROLE_RIGHTS[typeName];
//get the logged in user's role
@@ -121,6 +121,14 @@ export default {
ret.read = canReadFullRecord;
return ret;
},
/////////////////////////////////
// convenience method for forms that deal with multiple object types
// (i.e. grids, history etc)
//
canOpen(oType) {
let r = this.getRights(oType);
return r.read;
}
};
/*