This commit is contained in:
@@ -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;
|
||||
}
|
||||
};
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user