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