forked from DGNum/gestioCOF
Switch from account test to user test
This commit is contained in:
parent
9a635148bb
commit
30a39ef2f6
1 changed files with 1 additions and 1 deletions
|
@ -1499,7 +1499,7 @@ def history_json(request):
|
|||
transfergroups = TransferGroup.objects.none()
|
||||
if account:
|
||||
opegroups = opegroups.filter(on_acc=account)
|
||||
if account == request.user.profile.account_kfet:
|
||||
if account.user == request.user:
|
||||
limit_date = False # pas de limite de date sur son propre historique
|
||||
# Un non-membre de l'équipe n'a que accès à son historique
|
||||
elif not request.user.has_perm("kfet.is_team"):
|
||||
|
|
Loading…
Reference in a new issue