feature: gate audit log by permissions (#3464)

* pairing

* restricting audit route

resolvees #3460

* updated tests

* fixing lint

* useSelector instead of useActor
This commit is contained in:
Kira Pilot
2022-08-11 09:34:45 -04:00
committed by GitHub
parent 4e6645af50
commit 6122df6f1f
7 changed files with 174 additions and 136 deletions

View File

@ -88,6 +88,7 @@ var (
// Should be able to read all template details, even in orgs they
// are not in.
ResourceTemplate: {ActionRead},
ResourceAuditLog: {ActionRead},
}),
}
},

View File

@ -22,6 +22,12 @@ var (
Type: "workspace",
}
// ResourceAuditLog
// read = access audit log
ResourceAuditLog = Object{
Type: "audit_log",
}
// ResourceTemplate CRUD. Org owner only.
// create/delete = Make or delete a new template
// update = Update the template, make new template versions