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. 4
      packages/nc-gui/components/dashboard/settings/UIAcl.vue
  2. 2
      packages/nocodb/src/models/ModelRoleVisibility.ts

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

@ -227,7 +227,7 @@ const toggleSelectAll = (role: Role) => {
<div v-for="role in roles" :key="role"> <div v-for="role in roles" :key="role">
<div v-if="column.name === role"> <div v-if="column.name === role">
<a-tooltip> <NcTooltip>
<template #title> <template #title>
<span v-if="record.disabled[role]"> <span v-if="record.disabled[role]">
{{ $t('labels.clickToMake') }} '{{ record.title }}' {{ $t('labels.visibleForRole') }} {{ role }} {{ $t('labels.clickToMake') }} '{{ record.title }}' {{ $t('labels.visibleForRole') }} {{ role }}
@ -244,7 +244,7 @@ const toggleSelectAll = (role: Role) => {
:class="`nc-acl-${record.title}-${role}-chkbox !ml-0.25`" :class="`nc-acl-${record.title}-${role}-chkbox !ml-0.25`"
@change="onRoleCheck(record, role as Role)" @change="onRoleCheck(record, role as Role)"
/> />
</a-tooltip> </NcTooltip>
</div> </div>
</div> </div>
</template> </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}`; const key = `${CacheScope.MODEL_ROLE_VISIBILITY}:${body.fk_view_id}:${body.role}`;
await NocoCache.appendToList( await NocoCache.appendToList(
CacheScope.MODEL_ROLE_VISIBILITY, CacheScope.MODEL_ROLE_VISIBILITY,
[insertObj.base_id], [context.base_id],
key, key,
); );
return modelRoleVisibility; return modelRoleVisibility;

Loading…
Cancel
Save