Permalink
Browse files

ip not in own table, ptr hooked to rdomain

  • Loading branch information...
1 parent f7406f6 commit 0f35dde58b230f77311a77236abfc4875445fced Kevin Ngo committed Mar 30, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 cyder/core/cyuser/backends.py
@@ -21,18 +21,18 @@ def has_perm(self, request, perm, obj):
obj_type = obj._meta.app_label
obj_in_ctnr = False
- domain_records = ['cname', 'mx', 'txt', 'srv', 'ptr',
- 'address_record', 'name_server']
+ domain_records = ['cname', 'mx', 'txt', 'srv', 'address_record',
+ 'name_server']
- reverse_domain_records = ['ip', 'reverse_nameserver']
+ reverse_domain_records = ['ptr', 'reverse_nameserver']
# domains
if obj_type == 'domain':
domains = ctnr.domains.all()
if obj in domains:
obj_in_ctnr = True
- # [cname, mx, txt, srv, ptr]
+ # [cname, mx, txt, srv]
elif obj_type in domain_records:
domains = ctnr.domains.all()
if obj.domain in domains:
@@ -51,7 +51,7 @@ def has_perm(self, request, perm, obj):
if obj in reverse_domains:
obj_in_ctnr = True
- # [ip, reverse_nameserver]
+ # [ptr, reverse_nameserver]
elif obj_type in reverse_domain_records:
reverse_domains = ctnr.reverse_domains.all()
if obj.reverse_domain in reverse_domains:

0 comments on commit 0f35dde

Please sign in to comment.