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

This commit is contained in:
Francis Lachapelle committed 2022-05-16 17:43:35 -04:00
1 parent dd0730947f
commit 1328a2566b
2 files changed
+10 -6

No files matched your search

@@ -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
*/