Skip to content

Commit

Permalink
Analysis TapeRecal should be allowed to have multiple RSEs even when …
Browse files Browse the repository at this point in the history
…using ask_approval as they will be auto approved

Signed-off-by: Rahul Chauhan <[email protected]>
  • Loading branch information
dynamic-entropy committed Jul 5, 2024
1 parent 26e67be commit 1efba00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/policy/CMSRucioPolicy/permission.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def perm_add_rule(issuer, kwargs, *, session: "Optional[Session]" = None):
return False

# If asked for approval, rse_expression can only be a single RSE
if kwargs["activity"] != "User AutoApprove" and kwargs["ask_approval"] and len(rses) != 1:
if kwargs["activity"] not in ["User AutoApprove", "Analysis TapeRecall"] and kwargs["ask_approval"] and len(rses) != 1:
return False

if kwargs["activity"] == "User AutoApprove":
Expand Down

0 comments on commit 1efba00

Please sign in to comment.