recipe links
This commit is contained in:
@@ -53,7 +53,7 @@ class DemoAccountPolicyMiddleware:
|
||||
response = HttpResponse('Demo request limit reached. Try again in a minute.', status=429)
|
||||
response['Retry-After'] = '60'
|
||||
return response
|
||||
forbidden = (path.startswith(('/o/', '/admin/', '/food/settings/tokens/')) or
|
||||
forbidden = (path.startswith(('/o/', '/admin/', '/food/settings/tokens/', '/settings/home-assistant/')) or
|
||||
path == '/settings/notifications/ntfy/test/' or
|
||||
(request.method == 'POST' and path in {
|
||||
'/food/search/openfoodfacts/', '/food/import/openfoodfacts/',
|
||||
|
||||
Reference in New Issue
Block a user