This commit is contained in:
2018-11-13 22:31:57 +00:00
parent d90d6a160e
commit 15daaebab9
7 changed files with 30 additions and 40 deletions

View File

@@ -39,10 +39,5 @@ export default {
return false;
}
return role === (store.state.roles & role);
//https://stackoverflow.com/questions/39359740/what-are-enum-flags-in-typescript
//https://stackoverflow.com/questions/15551652/javascript-enum-flag-check
// if ((role & flags.ERROR) == flags.ERROR) {
// alert("ERROR IS SET");
// }
}
};