summaryrefslogtreecommitdiff
path: root/src/meetingtools
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-11 22:00:17 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-11 22:00:17 +0200
commit396567778c076c05bc1375a0735f0052f983259f (patch)
treefd38b85f8bf7a549dcc2905fabc0b6397d210b05 /src/meetingtools
parent9135537d37d4ca9d841bb01062d4c99f728ba162 (diff)
per-room first-participant-host-policy
Diffstat (limited to 'src/meetingtools')
-rw-r--r--src/meetingtools/apps/room/models.py1
-rw-r--r--src/meetingtools/apps/room/views.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/meetingtools/apps/room/models.py b/src/meetingtools/apps/room/models.py
index 82aae6a..74ed1b1 100644
--- a/src/meetingtools/apps/room/models.py
+++ b/src/meetingtools/apps/room/models.py
@@ -22,6 +22,7 @@ class Room(models.Model):
urlpath = CharField(verbose_name="Custom URL",max_length=128,unique=True)
acc = ForeignKey(ACCluster,verbose_name="Adobe Connect Cluster",editable=False)
self_cleaning = BooleanField(verbose_name="Clean-up when empty?")
+ allow_host = BooleanField(verbose_name="Allow first participant to become host?",default=True)
sco_id = IntegerField(verbose_name="Adobe Connect Room")
source_sco_id = IntegerField(verbose_name="Template",blank=True,null=True)
folder_sco_id = IntegerField(verbose_name="Adobe Connect Room Folder",editable=False)
diff --git a/src/meetingtools/apps/room/views.py b/src/meetingtools/apps/room/views.py
index e042b7e..51abb88 100644
--- a/src/meetingtools/apps/room/views.py
+++ b/src/meetingtools/apps/room/views.py
@@ -366,7 +366,7 @@ def _goto(request,room,clean=True,promote=False):
if (room.user_count == 0) and (abs(lastvisit - now) > GRACE):
room = _clean(request,room)
- if room.host_count == 0:
+ if room.host_count == 0 and room.allow_host:
return respond_to(request, {"text/html": "apps/room/launch.html"}, {'room': room})
else:
room.save()