Skip to content

Commit

Permalink
Add GetStorageProviders to uploader scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ishank011 committed Apr 19, 2022
1 parent 1672733 commit a8ec504
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/grpc/interceptors/auth/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ func extractRefForReaderRole(req interface{}) (*provider.Reference, bool) {
func extractRefForUploaderRole(req interface{}) (*provider.Reference, bool) {
switch v := req.(type) {
// Write Requests
case *registry.GetStorageProvidersRequest:
return v.GetRef(), true
case *provider.StatRequest:
return v.GetRef(), true
case *provider.CreateContainerRequest:
return v.GetRef(), true
case *provider.TouchFileRequest:
Expand Down

0 comments on commit a8ec504

Please sign in to comment.