fix: Use role permissions from accounts instead of role attribute (#3445)
Use role permissions from accounts instead of the role attribute Fixes: #2557
This commit is contained in:
@@ -47,8 +47,11 @@ export const getters = {
|
||||
return currentAccount.availability;
|
||||
},
|
||||
|
||||
getCurrentAccountId(_state) {
|
||||
return _state.currentAccountId;
|
||||
getCurrentAccountId(_, __, rootState) {
|
||||
if (rootState.route.params && rootState.route.params.accountId) {
|
||||
return Number(rootState.route.params.accountId);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
getCurrentRole(_state) {
|
||||
|
||||
Reference in New Issue
Block a user