|
26 | 26 | </div> |
27 | 27 | </div> |
28 | 28 | <el-dropdown-item class="border-t p-8" @click="openResetPassword" |
29 | | - v-if="hasPermission(new ComplexPermission([RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole], |
30 | | - [PermissionConst.CHANGE_PASSWORD, PermissionConst.CHANGE_PASSWORD.getWorkspacePermissionWorkspaceManageRole, |
31 | | - PermissionConst.CHANGE_PASSWORD.getWorkspacePermission], |
| 29 | + v-if="hasPermission(new ComplexPermission([RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE, RoleConst.USER], |
| 30 | + [PermissionConst.CHANGE_PASSWORD], |
32 | 31 | [],'OR'),'OR')" |
33 | 32 | > |
34 | 33 | {{ $t('views.login.resetPassword') }} |
|
42 | 41 | </el-dropdown-item> |
43 | 42 | </div> |
44 | 43 | <el-dropdown-item style="padding: 0" @click.stop |
45 | | - v-if="hasPermission(new ComplexPermission([RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole, RoleConst.USER.getWorkspaceRole], |
46 | | - [PermissionConst.SWITCH_LANGUAGE.getWorkspacePermissionWorkspaceManageRole,PermissionConst.SWITCH_LANGUAGE, |
47 | | - PermissionConst.SWITCH_LANGUAGE.getWorkspacePermission |
48 | | - ],[],'OR'),'OR')" |
| 44 | + v-if="hasPermission(new ComplexPermission([RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE, RoleConst.USER], |
| 45 | + [PermissionConst.SWITCH_LANGUAGE],[],'OR'),'OR')" |
49 | 46 | > |
50 | 47 | <el-dropdown class="w-full" trigger="hover" placement="left-start"> |
51 | 48 | <div class="flex-between w-full" style="line-height: 22px; padding: 12px 11px"> |
|
86 | 83 | </el-dropdown-item> |
87 | 84 |
|
88 | 85 | <el-dropdown-item @click="router.push({ path: `/system/user` })" |
89 | | - v-if="hasPermission([RoleConst.EXTENDS_ADMIN, RoleConst.EXTENDS_WORKSPACE_MANAGE.getWorkspaceRole, |
90 | | - RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE.getWorkspaceRole],'OR')" |
| 86 | + v-if="hasPermission([RoleConst.EXTENDS_ADMIN, RoleConst.EXTENDS_WORKSPACE_MANAGE, |
| 87 | + RoleConst.ADMIN, RoleConst.WORKSPACE_MANAGE],'OR')" |
91 | 88 | > |
92 | 89 | <div class="flex-between w-full"> |
93 | 90 | {{ $t('views.system.title') }} |
|
0 commit comments