##// END OF EJS Templates
permissions: dont fail if permissions are unset
ergo -
Show More
@@ -13092,6 +13092,9 b" angular.module('appenlight.services.stateHolder', []).factory('stateHolder',"
13092 };
13092 };
13093
13093
13094 AeUser.hasAppPermission = function (perm_name) {
13094 AeUser.hasAppPermission = function (perm_name) {
13095 if (!this.permissions){
13096 return false
13097 }
13095 if (this.permissions.indexOf('root_administration') !== -1) {
13098 if (this.permissions.indexOf('root_administration') !== -1) {
13096 return true
13099 return true
13097 }
13100 }
@@ -63,6 +63,9 b" angular.module('appenlight.services.stateHolder', []).factory('stateHolder',"
63 };
63 };
64
64
65 AeUser.hasAppPermission = function (perm_name) {
65 AeUser.hasAppPermission = function (perm_name) {
66 if (!this.permissions){
67 return false
68 }
66 if (this.permissions.indexOf('root_administration') !== -1) {
69 if (this.permissions.indexOf('root_administration') !== -1) {
67 return true
70 return true
68 }
71 }
General Comments 0
You need to be logged in to leave comments. Login now