test internals #7

Merged
xdrm-brackets merged 9 commits from test/internal into 0.2.0 2019-11-21 21:31:25 +00:00
1 changed files with 0 additions and 10 deletions
Showing only changes of commit b18ea98497 - Show all commits

View File

@ -75,13 +75,3 @@ func (methodDef *Method) checkAndFormat(servicePath string, httpMethod string) e
return nil return nil
} }
// scopeHasPermission returns whether the permission fulfills a given scope
func scopeHasPermission(permission string, scope []string) bool {
for _, s := range scope {
if permission == s {
return true
}
}
return false
}