By Alex Lee on Tuesday, 01 May 2018
Posted in General Issues
Likes 0
Views 622
Votes 0
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[] = ')';
}
Hi Alex,

We are going great! thanks for your concern
For application filter it is actually will filtered stream from their friend only (register user)
For admin privilege, yes it will shows all stream from all user even though they're not friend. It is actually the default behavior for this application filter.
·
Wednesday, 02 May 2018 12:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there any way to change this because be default all content on the content on my site is open to everyone, so that doesn't help me, because on the news feed i can see every thing so why wouldn't i be able to every thing when filtering? Its not logical lol
·
Wednesday, 02 May 2018 16:37
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Alex,

I am really sorry but unfortunately we cannot accommodate your request currently as it is beyond our support scope's policy as outlined in https://stackideas.com/support

Having said that, if you require us to perform the customization for you, you can always request for a quote from us at https://crm.stackideas.com and select "Customizations" . Our sales person would be glad to send you a quote for the customizations that you have requested.
·
Wednesday, 02 May 2018 19:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Lol nah its all good i'll do it my self, just think its silly that it isn't by default in there
·
Wednesday, 02 May 2018 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it is intended to behave as per current behavior

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding and have a nice day ahead
·
Thursday, 03 May 2018 10:12
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post