diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-08-04 10:46:50 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-08-04 10:46:50 +0200 |
commit | b49cfb2efd05a46a830238e5dff703086ffc59c4 (patch) | |
tree | f8327535e80220399ae70fccb5fbee66116890ba | |
parent | 0340160ba71f73ef3dab1141d75f30d85144cc44 (diff) | |
download | volse-hubzilla-b49cfb2efd05a46a830238e5dff703086ffc59c4.tar.gz volse-hubzilla-b49cfb2efd05a46a830238e5dff703086ffc59c4.tar.bz2 volse-hubzilla-b49cfb2efd05a46a830238e5dff703086ffc59c4.zip |
multi acl: port /chat
-rw-r--r-- | Zotlabs/Module/Chat.php | 4 | ||||
-rw-r--r-- | view/tpl/chatroom_new.tpl | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Chat.php b/Zotlabs/Module/Chat.php index ff55a9319..69ab8000a 100644 --- a/Zotlabs/Module/Chat.php +++ b/Zotlabs/Module/Chat.php @@ -234,6 +234,10 @@ class Chat extends \Zotlabs\Web\Controller { '$chat_expire' => array('chat_expire',t('Expiration of chats (minutes)'),120,''), '$permissions' => t('Permissions'), '$acl' => populate_acl($channel_acl,false), + '$allow_cid' => acl2json($channel_acl['allow_cid']), + '$allow_gid' => acl2json($channel_acl['allow_gid']), + '$deny_cid' => acl2json($channel_acl['deny_cid']), + '$deny_gid' => acl2json($channel_acl['deny_gid']), '$lockstate' => $lockstate, '$submit' => t('Submit') diff --git a/view/tpl/chatroom_new.tpl b/view/tpl/chatroom_new.tpl index 94f694e41..1b7e0501a 100644 --- a/view/tpl/chatroom_new.tpl +++ b/view/tpl/chatroom_new.tpl @@ -1,5 +1,5 @@ <div id="chatroom-new" class="section-content-tools-wrapper"> - <form id="chatroom-new-form" action="chat" method="post" > + <form id="chatroom-new-form" action="chat" method="post" class="acl-form" data-form_id="chatroom-new-form" data-allow_cid='{{$allow_cid}}' data-allow_gid='{{$allow_gid}}' data-deny_cid='{{$deny_cid}}' data-deny_gid='{{$deny_gid}}'> {{include file="field_input.tpl" field=$name}} {{include file="field_input.tpl" field=$chat_expire}} <div class="btn-group pull-right"> |