diff --git a/app/models.py b/app/models.py index 4ce23c4..09d2c1b 100644 --- a/app/models.py +++ b/app/models.py @@ -971,7 +971,7 @@ class Domain(db.Model): domain_users.append(tmp.username) if 0 != len(domain_users): self.name = domain_reverse_name - self.grant_privielges(domain_users) + self.grant_privileges(domain_users) return {'status': 'ok', 'msg': 'New reverse lookup domain created with granted privilages'} return {'status': 'ok', 'msg': 'New reverse lookup domain created without users'} return {'status': 'ok', 'msg': 'Reverse lookup domain already exists'} @@ -1018,7 +1018,7 @@ class Domain(db.Model): user_ids.append(q[0].user_id) return user_ids - def grant_privielges(self, new_user_list): + def grant_privileges(self, new_user_list): """ Reconfigure domain_user table """ diff --git a/app/templates/domain_management.html b/app/templates/domain_management.html index 0cbb9bc..4e504d1 100644 --- a/app/templates/domain_management.html +++ b/app/templates/domain_management.html @@ -174,7 +174,7 @@

Domain Deletion

-

This function is used to remove a domain from PowerDNS-Admin AND PowerDNS. All records and user privileges which associated to this domain will also be removed. This change cannot be reverted.

+

This function is used to remove a domain from PowerDNS-Admin AND PowerDNS. All records and user privileges associated with this domain will also be removed. This change cannot be reverted.

diff --git a/app/views.py b/app/views.py index 2a8d1e2..aeb82e9 100644 --- a/app/views.py +++ b/app/views.py @@ -630,7 +630,7 @@ def domain_add(): history.add() # grant user access to the domain - Domain(name=domain_name).grant_privielges([current_user.username]) + Domain(name=domain_name).grant_privileges([current_user.username]) # apply template if needed if domain_template != '0': @@ -700,7 +700,7 @@ def domain_management(domain_name): # grant/revoke user privielges d = Domain(name=domain_name) - d.grant_privielges(new_user_list) + d.grant_privileges(new_user_list) history = History(msg='Change domain {0} access control'.format(domain_name), detail=str({'user_has_access': new_user_list}), created_by=current_user.username) history.add()