raise error on non-existing tag
Fixes: https://pagure.io/koji/issue/1101
This commit is contained in:
parent
f950bbda12
commit
55307406d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue