raise error on non-existing tag

Fixes: https://pagure.io/koji/issue/1101
This commit is contained in:
Tomas Kopecek 2020-02-21 10:39:05 +01:00
parent f950bbda12
commit 55307406d3

View file

@ -1621,7 +1621,7 @@ def check_tag_access(tag_id, user_id=None):
override = False
if 'admin' in perms:
override = True
tag = get_tag(tag_id)
tag = get_tag(tag_id, strict=True)
if tag['locked']:
return (False, override, "tag is locked")
if tag['perm_id']: