aboutsummaryrefslogtreecommitdiffstats
path: root/include/permissions.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-13 18:35:12 -0800
committerfriendica <info@friendica.com>2013-01-13 18:35:12 -0800
commit5182d6d820ee67404a84114f5c4074c3ae55bf84 (patch)
tree49ad2dc9ccbfab03f9f6197aa8ee6681b7cc9ff1 /include/permissions.php
parent83ca9dfc2396cdb3134bc8f7b6a02c80f7c5b537 (diff)
downloadvolse-hubzilla-5182d6d820ee67404a84114f5c4074c3ae55bf84.tar.gz
volse-hubzilla-5182d6d820ee67404a84114f5c4074c3ae55bf84.tar.bz2
volse-hubzilla-5182d6d820ee67404a84114f5c4074c3ae55bf84.zip
this should make tag delivery (e.g. forums) work - but not yet fully tested
Diffstat (limited to 'include/permissions.php')
-rw-r--r--include/permissions.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/permissions.php b/include/permissions.php
index e74486a06..e3578b311 100644
--- a/include/permissions.php
+++ b/include/permissions.php
@@ -278,5 +278,15 @@ function perm_is_allowed($uid,$observer,$permission) {
}
-
+// Check a simple array of observers against a permissions
+// return a simple array of those with permission
+
+function check_list_permissions($uid,$arr,$perm) {
+ $result = array();
+ if($arr)
+ foreach($arr as $x)
+ if($perm_is_allowed($uid,$x,$perm))
+ $result[] = $x;
+ return($result);
+}