diff --git a/ui/src/components/business/resource-authorization-drawer/UserAuthorization.vue b/ui/src/components/business/resource-authorization-drawer/UserAuthorization.vue index 25a02a79086..1087e2c2b6d 100644 --- a/ui/src/components/business/resource-authorization-drawer/UserAuthorization.vue +++ b/ui/src/components/business/resource-authorization-drawer/UserAuthorization.vue @@ -28,7 +28,7 @@ const canSelectNotAuth = computed(() => props.permissionOptions.some(({ value }) /* 查询与当前页选择 */ const { auth } = useStore() const searchPermissionOptions = computed(() => - RESOURCE_PERMISSION_OPTIONS.filter(({ value }) => !auth.isCE || value !== RESOURCE_PERMISSION.ROLE).map(({ label, value }) => ({ + RESOURCE_PERMISSION_OPTIONS.filter(({ value }) => auth.isEE || auth.isPE || value !== RESOURCE_PERMISSION.ROLE).map(({ label, value }) => ({ label, value, })), diff --git a/ui/src/components/business/resource-authorization-drawer/index.vue b/ui/src/components/business/resource-authorization-drawer/index.vue index 70d6a719a52..ae39bc9e4c0 100644 --- a/ui/src/components/business/resource-authorization-drawer/index.vue +++ b/ui/src/components/business/resource-authorization-drawer/index.vue @@ -59,7 +59,9 @@ const folderPermissions = computed(() => { }) const isFolder = computed(() => Boolean(folderPermissions.value && (props.isFolder || props.isRootFolder || props.type.endsWith('_FOLDER')))) const authorizationType = computed(() => (isFolder.value ? (folderPermissions.value?.target ?? props.type) : props.type)) -const permissionOptions = computed(() => RESOURCE_PERMISSION_OPTIONS.filter(({ value }) => !auth.isCE || value !== RESOURCE_PERMISSION.ROLE)) +const permissionOptions = computed(() => + RESOURCE_PERMISSION_OPTIONS.filter(({ value }) => auth.isEE || auth.isPE || value !== RESOURCE_PERMISSION.ROLE), +) const editablePermissionOptions = computed(() => permissionOptions.value.filter(({ value }) => !props.isRootFolder || value !== RESOURCE_PERMISSION.NOT_AUTH), ) diff --git a/ui/src/layout/LayoutHeader.vue b/ui/src/layout/LayoutHeader.vue index e1218aa25c0..e0c4565aa07 100644 --- a/ui/src/layout/LayoutHeader.vue +++ b/ui/src/layout/LayoutHeader.vue @@ -97,7 +97,7 @@ function toUrl(url?: string) { - + {{ t('layout.upgrade') }} diff --git a/ui/src/views/system/identity/resource-authorization/constants.ts b/ui/src/views/system/identity/resource-authorization/constants.ts index 79f16d8f0e8..b5aa8b09fe7 100644 --- a/ui/src/views/system/identity/resource-authorization/constants.ts +++ b/ui/src/views/system/identity/resource-authorization/constants.ts @@ -15,7 +15,7 @@ export const RESOURCE_AUTHORIZATION_LABELS: Record item.value !== RESOURCE_PERMISSION.ROLE) } diff --git a/ui/src/views/system/identity/users/components/UserGroupSetting.vue b/ui/src/views/system/identity/users/components/UserGroupSetting.vue index 225f1e05359..9884005f3e5 100644 --- a/ui/src/views/system/identity/users/components/UserGroupSetting.vue +++ b/ui/src/views/system/identity/users/components/UserGroupSetting.vue @@ -10,7 +10,7 @@ defineOptions({ name: 'UserGroupSetting' }) const { t } = useI18n({ useScope: 'global' }) const { auth } = useStore() -const usesDefaultWorkspace = computed(() => auth.isCE || auth.isPE) +const usesDefaultWorkspace = computed(() => !auth.isEE) const props = defineProps<{ workspaceIds: string[]; workspaceOptions: ListItem[] }>()