mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add disabling of default 'everyone' group access to template (#7982)
* feat: add disabling of default 'everyone' group access to template * add FE to disable everyone group * require entitlement to uncheck box
This commit is contained in:
@@ -42,6 +42,14 @@ type MockAuditor struct {
|
||||
auditLogs []database.AuditLog
|
||||
}
|
||||
|
||||
// ResetLogs removes all audit logs from the mock auditor.
|
||||
// This is helpful for testing to get a clean slate.
|
||||
func (a *MockAuditor) ResetLogs() {
|
||||
a.mutex.Lock()
|
||||
defer a.mutex.Unlock()
|
||||
a.auditLogs = make([]database.AuditLog, 0)
|
||||
}
|
||||
|
||||
func (a *MockAuditor) AuditLogs() []database.AuditLog {
|
||||
a.mutex.Lock()
|
||||
defer a.mutex.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user