mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add chat sharing foundation (#25041)
This commit is contained in:
@@ -253,3 +253,17 @@ func SetWorkspaceACLDisabled(v bool) {
|
||||
func WorkspaceACLDisabled() bool {
|
||||
return workspaceACLDisabled.Load()
|
||||
}
|
||||
|
||||
var chatACLDisabled atomic.Bool
|
||||
|
||||
// SetChatACLDisabled is global because database model methods build
|
||||
// RBAC objects without API instance state.
|
||||
func SetChatACLDisabled(v bool) {
|
||||
chatACLDisabled.Store(v)
|
||||
}
|
||||
|
||||
// ChatACLDisabled is global because database model methods build RBAC
|
||||
// objects without API instance state.
|
||||
func ChatACLDisabled() bool {
|
||||
return chatACLDisabled.Load()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user