HUGE REFACTOR / CLEANUP
if there is a issue it's probably something in here that was changed
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import authorizationroles from "./authorizationroles";
|
||||
let role = authorizationroles.AUTHORIZATION_ROLES;
|
||||
const role = authorizationroles.AUTHORIZATION_ROLES;
|
||||
export default {
|
||||
registry: [
|
||||
{
|
||||
@@ -48,9 +48,9 @@ export default {
|
||||
}
|
||||
],
|
||||
availableItems() {
|
||||
let ret = [];
|
||||
const ret = [];
|
||||
for (let i = 0; i < this.registry.length; i++) {
|
||||
let item = this.registry[i];
|
||||
const item = this.registry[i];
|
||||
if (authorizationroles.hasRole(item.roles)) {
|
||||
ret.push({ id: item.id, title: item.title, type: item.type });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user