mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-07 03:44:02 +02:00
Continue to remove old perm system
This commit is contained in:
@ -41,14 +41,6 @@ class User(AbstractUser):
|
||||
|
||||
REQUIRED_FIELDS = ['first_name', 'last_name', 'email']
|
||||
|
||||
def has_perms(self, perms, obj=None):
|
||||
for perm in perms:
|
||||
try:
|
||||
Right.objects.get(user=self, right__listright=perm)
|
||||
return True
|
||||
except Right.DoesNotExist:
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_adherent(self):
|
||||
last_adh_year = Adhesion.objects.all().order_by(
|
||||
|
Reference in New Issue
Block a user