Browse Source

fix: ui acl issue (#8916)

pull/8918/head
Anbarasu 6 months ago committed by GitHub
parent
commit
87d1cc4fd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/nc-gui/components/dashboard/settings/UIAcl.vue
  2. 2
      packages/nocodb/src/models/ModelRoleVisibility.ts

6
packages/nc-gui/components/dashboard/settings/UIAcl.vue

@ -227,14 +227,14 @@ const toggleSelectAll = (role: Role) => {
<div v-for="role in roles" :key="role">
<div v-if="column.name === role">
<a-tooltip>
<NcTooltip>
<template #title>
<span v-if="record.disabled[role]">
{{ $t('labels.clickToMake') }} '{{ record.title }}' {{ $t('labels.visibleForRole') }} {{ role }}
{{ $t('labels.inUI') }} dashboard</span
>
<span v-else
>{{ $t('labels.clickToHide') }}'{{ record.title }}' {{ $t('labels.forRole') }}:{{ role }}
>{{ $t('labels.clickToHide') }} '{{ record.title }}' {{ $t('labels.forRole') }}:{{ role }}
{{ $t('labels.inUI') }}</span
>
</template>
@ -244,7 +244,7 @@ const toggleSelectAll = (role: Role) => {
:class="`nc-acl-${record.title}-${role}-chkbox !ml-0.25`"
@change="onRoleCheck(record, role as Role)"
/>
</a-tooltip>
</NcTooltip>
</div>
</div>
</template>

2
packages/nocodb/src/models/ModelRoleVisibility.ts

@ -187,7 +187,7 @@ export default class ModelRoleVisibility implements ModelRoleVisibilityType {
const key = `${CacheScope.MODEL_ROLE_VISIBILITY}:${body.fk_view_id}:${body.role}`;
await NocoCache.appendToList(
CacheScope.MODEL_ROLE_VISIBILITY,
[insertObj.base_id],
[context.base_id],
key,
);
return modelRoleVisibility;

Loading…
Cancel
Save