Skip to content

Commit 909691b

Browse files
fix: add delete permission to organization role and remove "No workspace match query" string (#156)
1 parent 8e82b74 commit 909691b

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

apps/dashboard/components/layout/organization-selector.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,12 +309,6 @@ export function OrganizationSelector() {
309309
</div>
310310
)}
311311

312-
{filteredOrganizations.length === 0 && (
313-
<div className="px-4 py-2.5 text-sidebar-foreground/60 text-xs">
314-
No workspaces match "{query}".
315-
</div>
316-
)}
317-
318312
<DropdownMenuSeparator className="my-1 bg-sidebar-border" />
319313
<DropdownMenuItem
320314
className="flex cursor-pointer items-center gap-3 px-4 py-2.5 text-sidebar-foreground/70 text-sm transition-colors hover:bg-sidebar-accent/60 hover:text-sidebar-accent-foreground"

packages/auth/src/permissions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const statement = {
2020
'transfer',
2121
],
2222

23-
organization: ['read', 'update', 'manage_logo', 'manage_settings'],
23+
organization: ['read', 'update', 'manage_logo', 'manage_settings', 'delete'],
2424

2525
subscription: ['read', 'update', 'cancel', 'manage_billing', 'view_usage'],
2626

@@ -72,7 +72,7 @@ const owner = ac.newRole({
7272
'transfer',
7373
],
7474
subscription: ['read', 'update', 'cancel', 'manage_billing', 'view_usage'],
75-
organization: ['read', 'update', 'manage_logo', 'manage_settings'],
75+
organization: ['read', 'update', 'manage_logo', 'manage_settings', 'delete'],
7676
member: ownerAc.statements.member,
7777
invitation: ownerAc.statements.invitation,
7878
});

0 commit comments

Comments
 (0)