mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
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:
@ -88,6 +88,7 @@ var (
|
||||
// Should be able to read all template details, even in orgs they
|
||||
// are not in.
|
||||
ResourceTemplate: {ActionRead},
|
||||
ResourceAuditLog: {ActionRead},
|
||||
}),
|
||||
}
|
||||
},
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user