diff options
Diffstat (limited to 'src/meetingtools/apps')
-rw-r--r-- | src/meetingtools/apps/room/models.py | 1 | ||||
-rw-r--r-- | src/meetingtools/apps/room/views.py | 2 |
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() |