feat: add auditing for groups (#4527)

- Clean up `database.TemplateACL` implementation.
This commit is contained in:
Jon Ayers
2022-10-19 02:00:45 -05:00
committed by GitHub
parent d4585fefb8
commit 0d1096da6c
27 changed files with 405 additions and 213 deletions
+3
View File
@@ -21,6 +21,7 @@ const (
ResourceTypeWorkspace ResourceType = "workspace"
ResourceTypeGitSSHKey ResourceType = "git_ssh_key"
ResourceTypeAPIKey ResourceType = "api_key"
ResourceTypeGroup ResourceType = "group"
)
func (r ResourceType) FriendlyString() string {
@@ -39,6 +40,8 @@ func (r ResourceType) FriendlyString() string {
return "git ssh key"
case ResourceTypeAPIKey:
return "api key"
case ResourceTypeGroup:
return "group"
default:
return "unknown"
}