recht update
This commit is contained in:
parent
7fd8786025
commit
e2b0cefe05
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue