mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-07 03:04:01 +02:00
Move clef and listright to admin
This commit is contained in:
@ -48,9 +48,6 @@ class User(AbstractUser):
|
||||
except Right.DoesNotExist:
|
||||
return False
|
||||
|
||||
def has_right(self, right):
|
||||
return Right.objects.filter(user=self).filter(right=ListRight.objects.get(listright=right)).exists()
|
||||
|
||||
@property
|
||||
def is_adherent(self):
|
||||
last_adh_year = Adhesion.objects.all().order_by('annee_debut').reverse().first()
|
||||
|
Reference in New Issue
Block a user