Fix references to the deprecrated admin_of field

master
Pierre Jaury 9 years ago
parent 340edc629e
commit c56a51f7b7

@ -123,7 +123,7 @@ class User(Address):
if self.global_admin: if self.global_admin:
return Domain.query.all() return Domain.query.all()
else: else:
return self.admin_of return self.manager_of
def get_managed_addresses(self): def get_managed_addresses(self):
addresses = [] addresses = []

@ -46,7 +46,7 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% if current_user.admin_of or current_user.global_admin %} {% if current_user.manager_of or current_user.global_admin %}
<li> <li>
<a href="{{ url_for('.domain_list') }}"> <a href="{{ url_for('.domain_list') }}">
<i class="fa fa-envelope"></i> <span>Mail domains</span> <i class="fa fa-envelope"></i> <span>Mail domains</span>

Loading…
Cancel
Save