From efd6a05f11f9f51c0f51732430199e92377737df Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 25 Apr 2019 20:04:42 +0000 Subject: [PATCH] --- ayanova/src/api/authorizationroles.js | 5 ++++- ayanova/src/api/{rolerights.js => bizroles.js} | 0 2 files changed, 4 insertions(+), 1 deletion(-) rename ayanova/src/api/{rolerights.js => bizroles.js} (100%) diff --git a/ayanova/src/api/authorizationroles.js b/ayanova/src/api/authorizationroles.js index afc2b10c..04e2f05a 100644 --- a/ayanova/src/api/authorizationroles.js +++ b/ayanova/src/api/authorizationroles.js @@ -2,7 +2,7 @@ import _ from "../libs/lodash.min.js"; import store from "../store"; import ayt from "./ayatype"; -import rights from "./rolerights"; +import rights from "./bizroles"; export default { AYATYPE: ayt, @@ -81,6 +81,9 @@ export default { var isSelfOwned=ownerId==vm.$store.state.userId; //calculate the effective rights taking into consideration self owned etc + role === (store.state.roles & role); + + // Change: 34 // ​ diff --git a/ayanova/src/api/rolerights.js b/ayanova/src/api/bizroles.js similarity index 100% rename from ayanova/src/api/rolerights.js rename to ayanova/src/api/bizroles.js