File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export const checks = {
5
5
createTemplates : "createTemplates" ,
6
6
updateTemplates : "updateTemplates" ,
7
7
deleteTemplates : "deleteTemplates" ,
8
- viewAuditLog : "viewAuditLog " ,
8
+ viewAnyAuditLog : "viewAnyAuditLog " ,
9
9
viewDeploymentValues : "viewDeploymentValues" ,
10
10
createGroup : "createGroup" ,
11
11
viewUpdateCheck : "viewUpdateCheck" ,
@@ -51,9 +51,10 @@ export const permissionsToCheck = {
51
51
} ,
52
52
action : "delete" ,
53
53
} ,
54
- [ checks . viewAuditLog ] : {
54
+ [ checks . viewAnyAuditLog ] : {
55
55
object : {
56
56
resource_type : "audit_log" ,
57
+ any_org : true ,
57
58
} ,
58
59
action : "read" ,
59
60
} ,
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export const Navbar: FC = () => {
16
16
const { user : me , permissions, signOut } = useAuthenticated ( ) ;
17
17
const featureVisibility = useFeatureVisibility ( ) ;
18
18
const canViewAuditLog =
19
- featureVisibility [ " audit_log" ] && Boolean ( permissions . viewAuditLog ) ;
19
+ featureVisibility . audit_log && Boolean ( permissions . viewAnyAuditLog ) ;
20
20
const canViewDeployment = Boolean ( permissions . viewDeploymentValues ) ;
21
21
const canViewOrganizations =
22
22
featureVisibility . multiple_organizations &&
Original file line number Diff line number Diff line change @@ -2479,7 +2479,7 @@ export const MockPermissions: Permissions = {
2479
2479
updateTemplates : true ,
2480
2480
viewAllUsers : true ,
2481
2481
updateUsers : true ,
2482
- viewAuditLog : true ,
2482
+ viewAnyAuditLog : true ,
2483
2483
viewDeploymentValues : true ,
2484
2484
viewUpdateCheck : true ,
2485
2485
viewDeploymentStats : true ,
You can’t perform that action at this time.
0 commit comments