diff --git a/timemanagement/views.py b/timemanagement/views.py index 60a1c4a..475c5fd 100644 --- a/timemanagement/views.py +++ b/timemanagement/views.py @@ -422,7 +422,8 @@ 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 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)