Support delegated DNS editing and additional record types

This commit is contained in:
parkel committed 2026-11-22 11:02:45 +01:00
1 parent aba83d299d
commit a8b51ce629
14 files changed
+402 -24

No files matched your search

+8
View File
@@ -36,6 +36,14 @@ def is_tenant(user):
)
def manages_account(user, account):
customer = customer_for_user(user)
if customer is not None:
return account.customer_id == customer.pk
reseller = reseller_for_user(user)
return reseller is not None and account.reseller_id == reseller.pk
def panel_access(request):
customer = customer_for_user(request.user) is not None
reseller = not customer and reseller_for_user(request.user) is not None