Exemple #1
0
func NewAccessRequired(m manager.Manager) *AccessRequired {
	acls := auth.DefaultACLs()
	a := &AccessRequired{
		deniedHandler: http.HandlerFunc(defaultDeniedHandler),
		manager:       m,
		acls:          acls,
	}
	return a
}
Exemple #2
0
func (m DefaultManager) Roles() ([]*auth.ACL, error) {
	roles := auth.DefaultACLs()
	return roles, nil
}
Exemple #3
0
func (m MockManager) Roles() ([]*auth.ACL, error) {
	return auth.DefaultACLs(), nil
}