this should make tag delivery (e.g. forums) work - but not yet fully tested

This commit is contained in:
friendica
2013-01-13 18:35:12 -08:00
parent 83ca9dfc23
commit 5182d6d820
3 changed files with 61 additions and 41 deletions

View File

@@ -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);
}