From 4f9ec2e8a4f24e01ee51c16e15d39c4b427b8517 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 29 Jan 2022 19:25:02 +0000 Subject: [PATCH] Fix attempting to set protected tag in API dropping other tags --- app/logic/packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/logic/packages.py b/app/logic/packages.py index 0c21b7d..4a08e4e 100644 --- a/app/logic/packages.py +++ b/app/logic/packages.py @@ -159,7 +159,7 @@ def do_edit_package(user: User, package: Package, was_new: bool, was_web: bool, raise LogicError(400, "Unknown tag: " + tag_id) if not was_web and tag.is_protected: - break + continue if tag.is_protected and tag not in old_tags and not user.rank.atLeast(UserRank.EDITOR): raise LogicError(400, lazy_gettext("Unable to add protected tag %(title)s to package", title=tag.title))