mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Removed deprecated property.
This commit is contained in:
@@ -242,16 +242,6 @@ class User(PermissionsMixin):
|
||||
return "%s %s" % (self.first_name, self.last_name)
|
||||
return "----"
|
||||
|
||||
@property
|
||||
def group(self):
|
||||
"""FIXME: DEPRECATED"""
|
||||
if self.is_superuser:
|
||||
return "SuperAdmins"
|
||||
try:
|
||||
return self.groups.all()[0].name
|
||||
except IndexError:
|
||||
return "---"
|
||||
|
||||
@property
|
||||
def enabled(self):
|
||||
return self.is_active
|
||||
|
||||
Reference in New Issue
Block a user