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 @@ -2,7 +2,7 @@ export const checks = {
2
2
viewAllUsers : "viewAllUsers" ,
3
3
updateUsers : "updateUsers" ,
4
4
createUser : "createUser" ,
5
- viewAuditLog : "viewAuditLog " ,
5
+ viewAnyAuditLog : "viewAnyAuditLog " ,
6
6
createAnyTemplate : "createAnyTemplate" ,
7
7
updateAllTemplates : "updateAllTemplates" ,
8
8
viewDeploymentValues : "viewDeploymentValues" ,
@@ -45,9 +45,10 @@ export const permissionsToCheck = {
45
45
} ,
46
46
action : "update" ,
47
47
} ,
48
- [ checks . viewAuditLog ] : {
48
+ [ checks . viewAnyAuditLog ] : {
49
49
object : {
50
50
resource_type : "audit_log" ,
51
+ any_org : true ,
51
52
} ,
52
53
action : "read" ,
53
54
} ,
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 @@ -2478,7 +2478,7 @@ export const MockPermissions: Permissions = {
2478
2478
updateAllTemplates : true ,
2479
2479
viewAllUsers : true ,
2480
2480
updateUsers : true ,
2481
- viewAuditLog : true ,
2481
+ viewAnyAuditLog : true ,
2482
2482
viewDeploymentValues : true ,
2483
2483
viewUpdateCheck : true ,
2484
2484
viewDeploymentStats : true ,
You can’t perform that action at this time.
0 commit comments