diff options
author | Mario <mario@mariovavti.com> | 2023-06-02 12:02:50 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-06-02 12:02:50 +0000 |
commit | 0ee03a565f58f3e66d7b7f40163c188cc7d5496f (patch) | |
tree | a057210dce0296f7552384b1408da539959b9fd8 | |
parent | 0e8d1afcaff6cff815c85ee4034da11a2967aee3 (diff) | |
download | volse-hubzilla-0ee03a565f58f3e66d7b7f40163c188cc7d5496f.tar.gz volse-hubzilla-0ee03a565f58f3e66d7b7f40163c188cc7d5496f.tar.bz2 volse-hubzilla-0ee03a565f58f3e66d7b7f40163c188cc7d5496f.zip |
remove custom acl from rpost
-rw-r--r-- | Zotlabs/Module/Rpost.php | 12 | ||||
-rw-r--r-- | view/tpl/cloud_directory.tpl | 2 |
2 files changed, 3 insertions, 11 deletions
diff --git a/Zotlabs/Module/Rpost.php b/Zotlabs/Module/Rpost.php index 7b84339b1..f0194fdfd 100644 --- a/Zotlabs/Module/Rpost.php +++ b/Zotlabs/Module/Rpost.php @@ -169,16 +169,8 @@ class Rpost extends \Zotlabs\Web\Controller { $channel = \App::get_channel(); - if(isset($_REQUEST['acl']) && $_REQUEST['acl']) { - $acl = new \Zotlabs\Access\AccessList([]); - $acl->set($_REQUEST['acl']); - $channel_acl = $acl->get(); - } - else { - $acl = new \Zotlabs\Access\AccessList($channel); - $channel_acl = $acl->get(); - } - + $acl = new \Zotlabs\Access\AccessList($channel); + $channel_acl = $acl->get(); if(isset($_REQUEST['url']) && $_REQUEST['url']) { $x = z_fetch_url(z_root() . '/linkinfo?f=&url=' . urlencode($_REQUEST['url'])); diff --git a/view/tpl/cloud_directory.tpl b/view/tpl/cloud_directory.tpl index 587adaeea..7bc298203 100644 --- a/view/tpl/cloud_directory.tpl +++ b/view/tpl/cloud_directory.tpl @@ -173,7 +173,7 @@ <a id="cloud-tool-dir-download-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-dir-download-btn" href="#" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-cloud-download"></i> {{$download_label}}</a> {{else}} {{if $is_owner}} - <a id="cloud-tool-share-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-share-btn" href="/rpost?attachment=[attachment]{{$item.resource}},{{$item.revision}}[/attachment]&acl[allow_cid]={{$item.raw_allow_cid}}&acl[allow_gid]={{$item.raw_allow_gid}}&acl[deny_cid]={{$item.raw_deny_cid}}&acl[deny_gid]={{$item.raw_deny_gid}}" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-share-square-o"></i> {{$post_label}}</a> + <a id="cloud-tool-share-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-share-btn" href="/rpost?attachment=[attachment]{{$item.resource}},{{$item.revision}}[/attachment]" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-share-square-o"></i> {{$post_label}}</a> {{/if}} <a download="{{$item.name}}" id="cloud-tool-download-btn-{{$item.attach_id}}" class="dropdown-item cloud-tool-download-btn" href="/attach/{{$item.resource}}" data-id="{{$item.attach_id}}"><i class="fa fa-fw fa-cloud-download"></i> {{$download_label}}</a> {{/if}} |