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 @@
+
+
+
+
+ {{ i.name }}
+ {{ i.date }} - {{ getEventName(i.event) }}
+ {{
+ getIconForObjectType(i.objectType)
+ }}{{ getNameForType(i.objectType) }}
+ {{ i.textra }}
+
+
+ {{
+ $ay.t("History")
+ }}
+ {{ $ay.t("Open") }}
+
+
+
+
+
+
+
- {{
- $ay.t("History")
- }}
{{ $ay.t("Open") }}{{ $ay.t("History") }}
+ {{
+ $ay.t("Open")
+ }}
- ObjectLog