diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-08-27 18:55:30 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-08-27 18:55:30 -0700 |
commit | 04b4897dd86d862957d95a5d6090af7a026dd82c (patch) | |
tree | 75894a319baafecda111685c501a281d8ea8f220 /mod/item.php | |
parent | c2bc6a04abd87b9e7a9aa742b8e5ff8ac711128a (diff) | |
download | volse-hubzilla-04b4897dd86d862957d95a5d6090af7a026dd82c.tar.gz volse-hubzilla-04b4897dd86d862957d95a5d6090af7a026dd82c.tar.bz2 volse-hubzilla-04b4897dd86d862957d95a5d6090af7a026dd82c.zip |
First attempt to turn access control into an object class. The access control manipulation is getting too complex and this will help keep it manageable and reduce a lot of code duplication.
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php index ff6a834e6..254904c9f 100644 --- a/mod/item.php +++ b/mod/item.php @@ -19,6 +19,7 @@ require_once('include/crypto.php'); require_once('include/enotify.php'); require_once('include/items.php'); require_once('include/attach.php'); +require_once('include/AccessList.php'); function item_post(&$a) { @@ -305,6 +306,8 @@ function item_post(&$a) { } } + $ACL = new AccessList($channel); + $public_policy = ((x($_REQUEST,'public_policy')) ? escape_tags($_REQUEST['public_policy']) : map_scope($channel['channel_r_stream'],true)); if($webpage) |