Hey how's it going guys?
Ok so i seem to be having issues with some thing that doesn't make any sence, The filter by app only works for Admins, not for registered users and it doesn't make any sence.
Every thing is set to Public but users just get:
Nothing is associated with this hashtag. Be the first to connect them!
Any yes that is from the App filter so i'm confused as hell, Admin works perfect i can see any thing and every thing doens't matter if i'm filtereing by Discussions (EasyDicuss) or K2 articles it filters it perfectly but when i login as registered user i get nothing is associated.
Weired as hell and i don't think there are any places to actually define the access rights to stream and filter apps or at least i can't find them. really confusing
I can't give ftp access as its AWS and its only based on keyfiles
EDIT - This is the hack we did if any one else wants it:
on file
/administrator/components/com_easysocial/models/stream.php
if (!$isAdmin) {
// privacy here.
$cond[] = 'AND (';
//public
$cond[] = '(a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_PUBLIC) . ') OR';
//member
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_MEMBER) . ') AND (' . $viewer . ' > 0)) OR ';
if ($sysconfig->get('friends.enabled')) {
//friends of friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND ((' . $streamLib->generateMutualFriendSQL($viewer, 'a.`actor_id`') . ') > 0)) OR ';
//friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND ((' . $streamLib->generateIsFriendSQL('a.`actor_id`', $viewer) . ') > 0)) OR ';
//friends
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIEND) . ') AND ((' . $streamLib->generateIsFriendSQL('a.`actor_id`', $viewer) . ') > 0)) OR ';
} else {
// fall back to 'member'
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIENDS_OF_FRIEND) . ') AND (' . $viewer . ' > 0)) OR ';
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_FRIEND) . ') AND (' . $viewer . ' > 0)) OR ';
}
//only me
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_ONLY_ME) . ') AND (a.`actor_id` = ' . $viewer . ')) OR ';
// custom
$cond[] = '((a.`access` = ' . $db->Quote(SOCIAL_PRIVACY_CUSTOM) . ') AND (a.`custom_access` LIKE ' . $db->Quote('%,' . $viewer . ',%') . ' )) OR ';
// my own items.
$cond[] = '(a.`actor_id` = ' . $viewer . ')';
// privacy checking end here.
$cond[] = ')';
}