Fix broken code

PR #1089 is the culprit, as was already predicted in the review.
This commit is contained in:
corubba 2022-06-23 22:22:05 +02:00 committed by Ymage
parent b9eb593acd
commit e920bf5009

View File

@ -388,7 +388,7 @@ def apikey_can_configure_dnssec(http_methods=[]):
def allowed_record_types(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if request.method == 'GET':
if request.method in ['GET', 'DELETE', 'PUT']:
return f(*args, **kwargs)
if g.apikey.role.name in ['Administrator', 'Operator']: