Files
next.orly.dev/pkg/acl/none.go
mleku 5edb7a3b09
Some checks failed
Go / build (push) Has been cancelled
implement auth and a simple admin-follows whitelist
2025-09-07 19:08:29 +01:00

27 lines
469 B
Go

package acl
import (
"lol.mleku.dev/log"
)
type None struct{}
func (n None) Configure(cfg ...any) (err error) { return }
func (n None) GetAccessLevel(pub []byte) (level string) {
return "write"
}
func (n None) GetACLInfo() (name, description, documentation string) {
return "none", "no ACL", "blanket write access for all clients"
}
func (n None) Type() string {
return "none"
}
func init() {
log.T.F("registering none ACL")
Registry.Register(new(None))
}