Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions grails-app/services/docker/registry/web/AuthService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class AuthService {
List getScopePermissions(Map scope, Collection aclList, String ip) {
def actions = []
def typeValid = scope.type == 'repository'
def typeRegistry = scope.type == 'registry'
if (aclList && scope && typeValid) {
//todo: catalog role for type=catalog request
log.info "checking acls: $aclList"
Expand All @@ -73,6 +74,8 @@ class AuthService {
return AccessLevel.NONE
}.actions.flatten().unique()
log.info "Granting permissions: $actions"
}else if(aclList && scope && typeRegistry){
actions = ['*']
}
actions
}
Expand Down