aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-12 15:47:33 -0700
committerMario Vavti <mario@mariovavti.com>2018-03-13 09:08:32 +0100
commit62ad32cf2e8cd3016beb0a6ff6064bbe51d2f10f (patch)
tree3d32b59281244d8fb3d28cf58615f3e178866316 /include
parent092c1c8c4c67fa97847fbdeb69808d3479499577 (diff)
downloadvolse-hubzilla-62ad32cf2e8cd3016beb0a6ff6064bbe51d2f10f.tar.gz
volse-hubzilla-62ad32cf2e8cd3016beb0a6ff6064bbe51d2f10f.tar.bz2
volse-hubzilla-62ad32cf2e8cd3016beb0a6ff6064bbe51d2f10f.zip
obscure permission issue with custom permissions when using the highly discouraged advisory privacy modes
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 50f663836..7faa1b9ec 100755
--- a/include/items.php
+++ b/include/items.php
@@ -969,6 +969,10 @@ function import_author_unknown($x) {
return false;
}
+function empty_acl($item) {
+ return (($item['allow_cid'] === EMPTY_STR && $item['allow_gid'] === EMPTY_STR && $item['deny_cid'] === EMPTY_STR && $item['deny_gid'] === EMPTY_STR) ? true : false);
+}
+
function encode_item($item,$mirror = false) {
$x = array();
$x['type'] = 'activity';