func (role *Role) MatchedRoles(req *http.Request, user interface{}) (roles []string) {
	if definitions := role.definitions; definitions != nil {
		for name, definition := range definitions {
			if definition(req, user) {
				roles = append(roles, name)
			}
		}
	}
	return
}
func (role *Role) MatchedRoles(req *http.Request, user interface{}) (roles []string) {
	if definitions := role.definitions; definitions != nil {
		for name, definition := range definitions {
			if definition(req, user) {
				roles = append(roles, name)
			}
		}
	}
	return
}
func ( role * Role ) MatchedRoles ( req * http . Request , user interface { } ) ( roles [ ] string ) { if definitions := role . definitions ; definitions != nil { for name , definition := range definitions { if definition ( req , user ) { roles = append ( roles , name ) } } } return }
// MatchedRoles return defined roles from user
MatchedRoles return defined roles from user