1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-01-12 02:28:20 +02:00

Fix references to the deprecrated admin_of field

This commit is contained in:
Pierre Jaury 2016-04-24 19:42:02 +02:00
parent 340edc629e
commit c56a51f7b7
2 changed files with 2 additions and 2 deletions

View File

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

View File

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