fix(admininistration(js)): improve handling of unauthorized access

This commit is contained in:
Francis Lachapelle
2022-05-16 17:43:35 -04:00
parent dd0730947f
commit 1328a2566b
2 changed files with 10 additions and 6 deletions
@@ -43,7 +43,8 @@
},
resolve: {
stateUser: stateUser,
stateFolder: stateFolder
stateFolder: stateFolder,
stateAcls: stateAcls
}
})
.state('administration.theme', {
@@ -120,6 +121,11 @@
return o;
}
stateAcls.$inject = ['stateFolder'];
function stateAcls(stateFolder) {
return stateFolder.$acl.$users(stateFolder.owner);
}
/**
* @ngInject
*/