mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-05 02:14:15 +00:00
Fix the removing of built in permissions for admin app
This commit is contained in:
1 parent
7a267dbc3f
commit
150147c69f
1 file changed
+6
@@ -105,6 +105,12 @@ class User(AbstractBaseUser):
|
||||
USERNAME_FIELD = 'username'
|
||||
# REQUIRED_FIELDS = ['email']
|
||||
|
||||
def has_module_perms(self, package_name):
|
||||
return self.is_active
|
||||
|
||||
def has_perm(self, perm, obj=None):
|
||||
return self.is_active and self.is_superuser
|
||||
|
||||
def get_absolute_url(self):
|
||||
"""
|
||||
This is needed for black magic powered UpdateView's children
|
||||
|
||||
Reference in new issue
Block a user