mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 09:03:06 +00:00 
			
		
		
		
	Fix the removing of built in permissions for admin app
This commit is contained in:
		| @@ -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