From e7e73e6fd1f2e6d7e9a31ad11aad9f3020c94bbf Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 5 Aug 2016 13:37:47 +0200 Subject: multi acl: port /thing --- Zotlabs/Module/Thing.php | 8 ++++++++ view/js/acl.js | 2 +- view/tpl/thing_edit.tpl | 5 ++--- view/tpl/thing_input.tpl | 5 ++--- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Zotlabs/Module/Thing.php b/Zotlabs/Module/Thing.php index 65fc0588e..a7ac63f73 100644 --- a/Zotlabs/Module/Thing.php +++ b/Zotlabs/Module/Thing.php @@ -312,6 +312,10 @@ class Thing extends \Zotlabs\Web\Controller { '$imgurl' => $r[0]['obj_imgurl'], '$permissions' => t('Permissions'), '$aclselect' => 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') )); @@ -358,6 +362,10 @@ class Thing extends \Zotlabs\Web\Controller { '$img_lbl' => t('URL for photo of thing (optional)'), '$permissions' => t('Permissions'), '$aclselect' => 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/js/acl.js b/view/js/acl.js index 9b9f0eba3..a1af5f4f0 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -62,7 +62,7 @@ function ACL(backend_url) { } -ACL.prototype.get_form_data = function(event, form_id) { +ACL.prototype.get_form_data = function(event) { form_id = $(this).data('form_id'); diff --git a/view/tpl/thing_edit.tpl b/view/tpl/thing_edit.tpl index 356693782..b23584fe1 100644 --- a/view/tpl/thing_edit.tpl +++ b/view/tpl/thing_edit.tpl @@ -1,5 +1,5 @@

{{$thing_hdr}}

-
+ {{if $multiprof }} @@ -29,8 +29,6 @@
-{{$aclselect}} - {{if $lockstate}}