← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Merge] ~andersson123/autopkgtest-cloud:fix-in_allowed_team-call into autopkgtest-cloud:master

 

Tim Andersson has proposed merging ~andersson123/autopkgtest-cloud:fix-in_allowed_team-call into autopkgtest-cloud:master.

Requested reviews:
  Canonical's Ubuntu QA (canonical-ubuntu-qa)

For more details, see:
https://code.launchpad.net/~andersson123/autopkgtest-cloud/+git/autopkgtest-cloud/+merge/459338
-- 
Your team Canonical's Ubuntu QA is requested to review the proposed merge of ~andersson123/autopkgtest-cloud:fix-in_allowed_team-call into autopkgtest-cloud:master.
diff --git a/charms/focal/autopkgtest-web/webcontrol/request/submit.py b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
index 1110863..3466254 100644
--- a/charms/focal/autopkgtest-web/webcontrol/request/submit.py
+++ b/charms/focal/autopkgtest-web/webcontrol/request/submit.py
@@ -223,7 +223,7 @@ class Submit:
             not self.can_upload(requester, release, package_component, package)
             and not can_upload_any_trigger
             and requester not in ALLOWED_USERS_PERPACKAGE.get(package, [])
-            and not self.in_allowed_team(requester, package)
+            and not self.in_allowed_team(requester)
         ):
             raise ForbiddenRequest(package, ",".join(triggers))
 

Follow ups