From 5182d6d820ee67404a84114f5c4074c3ae55bf84 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 13 Jan 2013 18:35:12 -0800 Subject: this should make tag delivery (e.g. forums) work - but not yet fully tested --- include/permissions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include/permissions.php') 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); +} -- cgit v1.2.3