From 67d77e598ea7ba3f8ebd5518d0d669c2e7d31740 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 13 Apr 2020 16:42:38 +0000 Subject: [PATCH] --- ayanova/src/api/authorizationroles.js | 10 +++- ayanova/src/views/ay-history.vue | 71 ++++++++++++++++++++++----- 2 files changed, 68 insertions(+), 13 deletions(-) diff --git a/ayanova/src/api/authorizationroles.js b/ayanova/src/api/authorizationroles.js index 926a2b6c..c7085ae2 100644 --- a/ayanova/src/api/authorizationroles.js +++ b/ayanova/src/api/authorizationroles.js @@ -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; } }; /* diff --git a/ayanova/src/views/ay-history.vue b/ayanova/src/views/ay-history.vue index ddb11334..9c30b340 100644 --- a/ayanova/src/views/ay-history.vue +++ b/ayanova/src/views/ay-history.vue @@ -9,6 +9,44 @@ + -