3
0
Files
corteza/pkg/rbac/service_alt.go
2021-07-08 11:42:18 +02:00

25 lines
399 B
Go

package rbac
import (
"context"
)
type (
ServiceAllowAll struct{ *service }
)
func (ServiceAllowAll) Can(Session, string, Resource) bool {
return true
}
func (ServiceAllowAll) Check([]uint64, string, Resource) (v Access) {
return Allow
}
func (ServiceAllowAll) FindRulesByRoleID(uint64) (rr RuleSet) {
return
}
func (ServiceAllowAll) Grant(context.Context, ...*Rule) error {
return nil
}