mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-18 08:12:33 +00:00
feat: 修改权限
This commit is contained in:
@@ -81,7 +81,10 @@ async function changeCurrentRoleIfNeed({ to, from, next }) {
|
||||
const adminOrgs = store.getters.userAdminOrgList
|
||||
if (!adminOrgs || adminOrgs.length === 0) {
|
||||
currentRole = rolec.USER_PAGE_REQUIRE_PERM_MIN
|
||||
} else if (rolec.hasAdminPagePerm(userPerms)) {
|
||||
await store.dispatch('users/setCurrentRole', currentRole)
|
||||
return
|
||||
}
|
||||
if (rolec.hasAdminPagePerm(userPerms)) {
|
||||
currentRole = rolec.getUserInAdminPagePerm(userPerms)
|
||||
} else {
|
||||
currentRole = rolec.getUserInUserPagePerm(userPerms)
|
||||
|
Reference in New Issue
Block a user