mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
Fix the removing of built in permissions for admin app
This commit is contained in:
parent
7a267dbc3f
commit
150147c69f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user