Skip to content

Commit 9ec9c75

Browse files
committed
Show better message when unable to edit anything in an org
1 parent 07cc86e commit 9ec9c75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

site/src/pages/ManagementSettingsPage/OrganizationSettingsPage.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ const OrganizationSettingsPage: FC = () => {
8282
/>
8383
);
8484
}
85-
// TODO: This should only happen if the user manually edits the URL, but
86-
// maybe we can show a better message anyway.
8785
return (
88-
<EmptyState message={organization.display_name || organization.name} />
86+
<EmptyState message="You do not have permission to edit this organization." />
8987
);
9088
}
9189

0 commit comments

Comments
 (0)