mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-06 22:24:05 +00:00
Tweaks to allow user apikey usage with powerdns terraform provider (#845)
This commit is contained in:

committed by
GitHub

parent
942482b706
commit
c6e0293177
@ -236,7 +236,7 @@ def apikey_can_access_domain(f):
|
||||
apikey = g.apikey
|
||||
if g.apikey.role.name not in ['Administrator', 'Operator']:
|
||||
domains = apikey.domains
|
||||
zone_id = kwargs.get('zone_id')
|
||||
zone_id = kwargs.get('zone_id').rstrip(".")
|
||||
domain_names = [item.name for item in domains]
|
||||
|
||||
if zone_id not in domain_names:
|
||||
|
Reference in New Issue
Block a user