Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#1627 from bbockelm/modify_token
Browse files Browse the repository at this point in the history
Switch write capability to `storage.modify`
  • Loading branch information
bbockelm authored Oct 10, 2024
2 parents 23466bf + 7245238 commit 73fb91d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/acquire_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ func generateToken(destination *url.URL, dirResp server_structs.DirectorResponse
tc.Subject = "client_token"
ts := token_scopes.Storage_Read
if opts.Operation == config.TokenSharedWrite {
ts = token_scopes.Storage_Create
ts = token_scopes.Storage_Modify
}
if after, found := strings.CutPrefix(path.Clean(destination.Path), path.Clean(dirResp.XPelNsHdr.Namespace)); found {
tc.AddResourceScopes(token_scopes.NewResourceScope(ts, after))
Expand Down

0 comments on commit 73fb91d

Please sign in to comment.