@@ -135,9 +135,9 @@ export const organizationPermissions = (organizationId: string | undefined) => {
135135queryKey :[ "organization" , organizationId , "permissions" ] ,
136136queryFn :( ) =>
137137// Only request what we use on individual org settings, members, and group
138- // pages, which at the moment is whether you can edit the membersor roles
139- //on the members page and whether you can see the creategroup button on
140- //the groups page. The edit organization check for the settings page is
138+ // pages, which at the moment is whether you can edit the memberson the
139+ // members page, create roles on the roles page, and creategroups on the
140+ // groups page. The edit organization check for the settings page is
141141// covered by the multi-org query at the moment, and the edit group check
142142// on the group page is done on the group itself, not the org, so neither
143143// show up here.
@@ -185,9 +185,9 @@ export const organizationsPermissions = (
185185queryKey :[ "organizations" , organizationIds . sort ( ) , "permissions" ] ,
186186queryFn :async ( ) => {
187187// Only request what we need for the sidebar, which is one edit permission
188- // per sub-link (audit, settings, groups, roles, and members pages) that
189- //tells us whether to show that page, since we only show them if you can
190- //edit (and not, at the moment if you can only view).
188+ // per sub-link (settings, groups, roles, and members pages) that tells us
189+ // whether to show that page, since we only show them if you can edit (and
190+ // not, at the moment if you can only view).
191191const checks = ( organizationId :string ) => ( {
192192editMembers :{
193193object :{
@@ -210,13 +210,6 @@ export const organizationsPermissions = (
210210} ,
211211action :"update" ,
212212} ,
213- auditOrganization :{
214- object :{
215- resource_type :"audit_log" ,
216- organization_id :organizationId ,
217- } ,
218- action :"read" ,
219- } ,
220213assignOrgRole :{
221214object :{
222215resource_type :"assign_org_role" ,