summaryrefslogtreecommitdiff
path: root/src/meetingtools/apps/room
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-13 16:00:19 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-13 16:00:19 +0200
commita046c6014f42d32dad447cb68cf60f8921ff0fa8 (patch)
treed8ad13a95bf54b2ddfa9d0dafa77c1de72074ac8 /src/meetingtools/apps/room
parent95e8875f5aeb5291a4bbd1b26c5a0522c491b0dd (diff)
room unlock function for emergencies
Diffstat (limited to 'src/meetingtools/apps/room')
-rw-r--r--src/meetingtools/apps/room/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index f4da0df..866199d 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -314,6 +314,12 @@ def user_rooms(request):
{'title':'Your Rooms','edit':True,'active':len(rooms) == 1,'rooms':rooms})
@login_required
+def unlock(request,id):
+ room = get_object_or_404(Room,pk=id)
+ room.unlock()
+ return redirect_to("/rooms#%d" % room.id)
+
+@login_required
def delete(request,id):
room = get_object_or_404(Room,pk=id)
if request.method == 'POST':