bug behoben
This commit is contained in:
parent
904fe7f30d
commit
3caa4e4728
|
|
@ -415,7 +415,7 @@ def TimeManagement(request, activemonth=False, activeyear=False):
|
|||
def TimeUpdate(request, pk, team=0):
|
||||
workday = Workday.objects.get(pk=pk)
|
||||
user = workday.user
|
||||
if(request.user.profile.agency == workday.agency and request.user.has_perm('users.usermanager')):
|
||||
if(request.user.profile.agency == workday.agency):
|
||||
if(request.method == "POST"):
|
||||
if(team == 0):
|
||||
form = UpdateWorkdayForm(request.POST, instance=request.user)
|
||||
|
|
|
|||
Loading…
Reference in New Issue