By Johan Loiay on Monday, 15 August 2016
Posted in General Issues
Replies 3
Likes 0
Views 591
Votes 0
I have users that belong to moderated groups, and also to non-moderated groups (Joomla), but Komento always forces the moderate.

Example: group Customer is moderated, and group Partner is non-moderated.
User A belongs to both these groups, and when trying to comment it will moderate the comments (because of the Customers group).

Is there a solution for multiple groups assigned to a user with different moderation settings, and have it not moderate?
Unfortunately that was not possible to achieve this, by default system will check if the user under one of the user group which is moderated, system will moderated his comment.

If you would like to change this default behaviour, you have to modify on this file ->
JoomlaFolder\components\com_komento\classes\profile.php

LINE 255
	public function toModerate()


By the way, I am really sorry but our system is unable to locate any orders from your account. Our priority support is only available for users with a valid subscription.

Thanks for understand.
·
Monday, 15 August 2016 22:29
·
0 Likes
·
0 Votes
·
0 Comments
·
I ended up by inverting the function:
foreach( $usergid as $gid )
{
if( !in_array( $gid, $moderationGroup ) )
{
return false;
break;
}
}

//always moderate:
return true;
·
Tuesday, 16 August 2016 19:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing.
·
Tuesday, 16 August 2016 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post