diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-07-26 12:58:58 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-07-26 12:58:58 -0700 |
| commit | 54cd5826535871dd5b887171b693df5fc497347e (patch) | |
| tree | f00da71aa1f221a4881f8f672f50ba6dea547add /weed/s3api/auth_credentials.go | |
| parent | c50ec1599c953068ff2e7f4835d30b044ac3325d (diff) | |
| download | seaweedfs-54cd5826535871dd5b887171b693df5fc497347e.tar.xz seaweedfs-54cd5826535871dd5b887171b693df5fc497347e.zip | |
refactor
Diffstat (limited to 'weed/s3api/auth_credentials.go')
| -rw-r--r-- | weed/s3api/auth_credentials.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/weed/s3api/auth_credentials.go b/weed/s3api/auth_credentials.go index de40897ea..db5f4c8a3 100644 --- a/weed/s3api/auth_credentials.go +++ b/weed/s3api/auth_credentials.go @@ -7,7 +7,6 @@ import ( "net/http" "github.com/golang/protobuf/jsonpb" - "github.com/gorilla/mux" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/iam_pb" @@ -159,8 +158,7 @@ func (iam *IdentityAccessManagement) authRequest(r *http.Request, action Action) glog.V(3).Infof("user name: %v actions: %v", identity.Name, identity.Actions) - vars := mux.Vars(r) - bucket := vars["bucket"] + bucket, _ := getBucketAndObject(r) if !identity.canDo(action, bucket) { return ErrAccessDenied |
