@@ -10,7 +10,6 @@ import type { Organization } from "api/typesGenerated";
10
10
import { EmptyState } from "components/EmptyState/EmptyState" ;
11
11
import { displaySuccess } from "components/GlobalSnackbar/utils" ;
12
12
import { Loader } from "components/Loader/Loader" ;
13
- import { linkToAuditing , withFilter } from "modules/navigation" ;
14
13
import { useOrganizationSettings } from "./ManagementSettingsLayout" ;
15
14
import { OrganizationSettingsPageView } from "./OrganizationSettingsPageView" ;
16
15
@@ -59,28 +58,8 @@ const OrganizationSettingsPage: FC = () => {
59
58
}
60
59
61
60
// When someone views the top-level org URL (/organizations/my-org) they might
62
- // not have edit permissions. Redirect to a page they can view.
63
- // TODO: Instead of redirecting, maybe there should be some summary page for
64
- // the organization that anyone who belongs to the org can read (with
65
- // the description, icon, etc). Or we could show the form that normally
66
- // shows on this page but disable the fields, although that could be
67
- // confusing?
61
+ // not have edit permissions.
68
62
if ( ! permissions . editOrganization ) {
69
- if ( permissions . viewMembers ) {
70
- return < Navigate to = "members" replace /> ;
71
- } else if ( permissions . viewGrousp ) {
72
- return < Navigate to = "groups" replace /> ;
73
- } else if ( permissions . auditOrganization ) {
74
- return (
75
- < Navigate
76
- to = { `/deployment${ withFilter (
77
- linkToAuditing ,
78
- `organization:${ organization . name } ` ,
79
- ) } `}
80
- replace
81
- />
82
- ) ;
83
- }
84
63
return (
85
64
< EmptyState message = "You do not have permission to edit this organization." />
86
65
) ;