Skip to content

Commit

Permalink
آماده برای انتشار
Browse files Browse the repository at this point in the history
  • Loading branch information
alishirmohammadi committed Oct 26, 2019
1 parent 62eb0d7 commit 84e7d2a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/locker/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ def calculate_difference(x, y):

@login_required
def lock(request):
if not request.user.is_staff:
return render(request, 'locker_disable.html')

# if not request.user.is_staff:
# return render(request, 'locker_disable.html')
theRacks = Rack.objects.filter(receiver=request.user, archived=False)
broken_lockers = ['A42',
'B23', 'B41',
Expand Down

0 comments on commit 84e7d2a

Please sign in to comment.