sidetag: parenthesis typo

Related: https://pagure.io/koji/issue/2321
This commit is contained in:
Tomas Kopecek 2020-06-18 13:05:29 +02:00
parent 474f346d48
commit b61df1bcc5

View file

@ -41,7 +41,7 @@ def is_sidetag_owner(taginfo, user, raise_error=False):
"""Check, that given user is owner of the sidetag"""
result = (taginfo['extra'].get('sidetag') and
(taginfo['extra'].get('sidetag_user_id') == user['id'] or
context.session.hasPerm('admin'))))
context.session.hasPerm('admin')))
if not result and raise_error:
raise koji.ActionNotAllowed("This is not your sidetag")