Fixing typo

This commit is contained in:
Khanh Ngo 2018-09-04 13:10:55 +07:00
parent fe07030487
commit 902e63a64e
No known key found for this signature in database
GPG Key ID: B9AE3BAF6D5A7B22
3 changed files with 5 additions and 5 deletions

View File

@ -971,7 +971,7 @@ class Domain(db.Model):
domain_users.append(tmp.username) domain_users.append(tmp.username)
if 0 != len(domain_users): if 0 != len(domain_users):
self.name = domain_reverse_name 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 with granted privilages'}
return {'status': 'ok', 'msg': 'New reverse lookup domain created without users'} return {'status': 'ok', 'msg': 'New reverse lookup domain created without users'}
return {'status': 'ok', 'msg': 'Reverse lookup domain already exists'} return {'status': 'ok', 'msg': 'Reverse lookup domain already exists'}
@ -1018,7 +1018,7 @@ class Domain(db.Model):
user_ids.append(q[0].user_id) user_ids.append(q[0].user_id)
return user_ids return user_ids
def grant_privielges(self, new_user_list): def grant_privileges(self, new_user_list):
""" """
Reconfigure domain_user table Reconfigure domain_user table
""" """

View File

@ -174,7 +174,7 @@
<h3 class="box-title">Domain Deletion</h3> <h3 class="box-title">Domain Deletion</h3>
</div> </div>
<div class="box-body"> <div class="box-body">
<p>This function is used to remove a domain from PowerDNS-Admin <b>AND</b> PowerDNS. All records and user privileges which associated to this domain will also be removed. This change cannot be reverted.</p> <p>This function is used to remove a domain from PowerDNS-Admin <b>AND</b> PowerDNS. All records and user privileges associated with this domain will also be removed. This change cannot be reverted.</p>
<button type="button" class="btn btn-flat btn-danger pull-left delete_domain" id="{{ domain.name }}"> <button type="button" class="btn btn-flat btn-danger pull-left delete_domain" id="{{ domain.name }}">
<i class="fa fa-trash"></i>&nbsp;DELETE DOMAIN {{ domain.name }} <i class="fa fa-trash"></i>&nbsp;DELETE DOMAIN {{ domain.name }}
</button> </button>

View File

@ -630,7 +630,7 @@ def domain_add():
history.add() history.add()
# grant user access to the domain # 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 # apply template if needed
if domain_template != '0': if domain_template != '0':
@ -700,7 +700,7 @@ def domain_management(domain_name):
# grant/revoke user privielges # grant/revoke user privielges
d = Domain(name=domain_name) 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 = 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() history.add()