Fix crash in GitLab webhook
This commit is contained in:
parent
6eb4a803fd
commit
00be054135
|
@ -40,7 +40,7 @@ def webhook():
|
|||
return error(403, "Token required")
|
||||
|
||||
token = APIToken.query.filter_by(access_token=secret).first()
|
||||
if secret is None:
|
||||
if token is None:
|
||||
return error(403, "Invalid authentication")
|
||||
|
||||
if not package.checkPerm(token.owner, Permission.APPROVE_RELEASE):
|
||||
|
|
Loading…
Reference in New Issue