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