Skip to content

Commit

Permalink
Merge pull request #1654 from olifre/scitokens-read
Browse files Browse the repository at this point in the history
Also grant Readdir when token grants read permission.
  • Loading branch information
abh3 committed Apr 11, 2022
2 parents d2fe173 + b48a245 commit 8b05e3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XrdSciTokens/XrdSciTokensAccess.cc
Expand Up @@ -701,6 +701,7 @@ class XrdAccSciTokens : public XrdAccAuthorize, public XrdSciTokensHelper
MakeCanonical(base_path + acl_path, path);
if (!strcmp(acl_authz, "read")) {
xrd_rules.emplace_back(AOP_Read, path);
xrd_rules.emplace_back(AOP_Readdir, path);
xrd_rules.emplace_back(AOP_Stat, path);
} else if (!strcmp(acl_authz, "write")) {
xrd_rules.emplace_back(AOP_Update, path);
Expand Down

0 comments on commit 8b05e3e

Please sign in to comment.