Browse Source

fix: permission bugs

pull/9807/head
Pranav C 1 month ago
parent
commit
92b8f68743
  1. 2
      packages/nc-gui/components/dlg/ReAssign/UserItem.vue
  2. 12
      packages/nc-gui/components/dlg/ReAssign/index.vue
  3. 1
      packages/nc-gui/lib/acl.ts

2
packages/nc-gui/components/dlg/ReAssign/UserItem.vue

@ -19,8 +19,6 @@ const displayName = computed(() => {
class="!text-[0.65rem]"
/>
<div class="flex flex-col justify-center flex-grow">
<div class="flex" :style="{ fontWeight: 500 }">{{ user.display_name }}</div>
<div class="flex flex-col">
<span class="capitalize font-weight-medium">{{ displayName }}</span>
<span class="text-xs">{{ user.email }}</span>

12
packages/nc-gui/components/dlg/ReAssign/index.vue

@ -78,7 +78,7 @@ const currentOwner = computed(() => {
return (
(props.view && basesUser.value.get(props.view.base_id)?.find((u) => u.id === props.view.owned_by)) || {
id: props.view.owned_by,
display_name: 'Unknown',
display_name: 'Unknown User',
}
)
})
@ -112,16 +112,6 @@ const assignView = async () => {
// if personal view then redirect to default view and reload view list
if (props.view.lock_type === ViewLockType.Personal) {
// navigate to default view
navigateToView({
view: viewsStore.views.find((v) => v.is_default),
tableId: props.view.fk_model_id,
baseId: props.view.base_id!,
force: true,
}).catch(() => {
// ignore
})
// then reload the view list
viewsStore
.loadViews({

1
packages/nc-gui/lib/acl.ts

@ -88,7 +88,6 @@ const rolePermissions = {
baseDuplicate: true,
sourceCreate: true,
baseAuditList: true,
reAssignViewOwner: true,
},
},
[ProjectRoles.EDITOR]: {

Loading…
Cancel
Save