mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Add is_webhook option to authentication decorats.
Modified: authenticated_rest_api_view authenticated_api_view and validate_api_key.
This commit is contained in:
@@ -122,7 +122,7 @@ def api_github_v2(user_profile, event, payload, branches, default_stream, commit
|
||||
|
||||
return target_stream, subject, content
|
||||
|
||||
@authenticated_api_view
|
||||
@authenticated_api_view(is_webhook=True)
|
||||
@has_request_variables
|
||||
def api_github_landing(request, user_profile, event=REQ(),
|
||||
payload=REQ(validator=check_dict([])),
|
||||
|
||||
Reference in New Issue
Block a user