By paul on Saturday, 11 January 2014
Posted in Technical Issues
Replies 7
Likes 0
Views 1.1K
Votes 0
HI, i have noticed a small issue in the Group / event blog plugin,s currently in jomsocial if you are set as a joomla administrator or joomla manager then you have all access to view and use all groups in jomsocial. This is correct, When i use the group or event blog plugin for jomsocial and write a new blog the dropdown to assign it to a group only shows the groups i am a member of. this is correct but Could you please tell me where you do this check so i could add administrator and manager into the checking.

The problem this causes is if someone is set as a joomla manager or administrator they can carry out all functions on the site without being a member of the jomsocial groups but when they write a new document they cannot assign the group to it so it s not very consistent with their access level
Hello Paul,

I am really sorry for the delay of this reply as it is a weekend for us here. This is what you can try, edit the file /components/com_easyblog/helpers/groups.php and at line 123 locate the codes below:


if( EasyBlogHelper::isSiteAdmin() && $isPending)
{
$rows = $model->getAllGroups();
}
else
{
$rows = $model->getGroups( $my->id , null , false );
}


Replace it with,


$rows = $model->getGroups( $my->id , null , false );
·
Sunday, 12 January 2014 02:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Thanks for your reply, Especially on your weekend, unfortunately it didn't make any difference, The whole benefit of making someone an admin or manger in joomla so you dont have to add them to jomsocial groups is great but then they cant write any documents in the group they have full access to. If you have any other thoughts i'd really appreciate it.

Thanks
Paul
·
Monday, 13 January 2014 19:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

Hm, that's odd because the changes to the code above will actually only render groups that the user is a part of. Is it possible for you to provide us with the back end and FTP access to your site to check on this issue?

By the way, are you testing this on the back end?
·
Monday, 13 January 2014 23:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark, i think i may have confused you with what my problem is I actually needthe opposite to what you told me to change but only if admin

In joomla and jomsocial the following happens (all this is front end)

A joomla user that is in administrator or manager groups (joomla) can log in to the site (front end) and does not need to be a member of any (private) jomsocial groups, as an administrator or manager (joomla) you have full access in jomsocial.

Currently if i set a joomla user to administrator or manager i can login to the site (front end) go to any private jomsocial group and carry out all functions in that private group without being a member (i can only do this without being a member of the private group because i am a joomla administrater or joomla manager) then when i go to write a document from that group the menu is not appearing (because i am not a member of the group and in the select a group in the dropdown below the editor no groups show up (because i am not a member of the group)

I am certainly NOT saying this is a fault it is a consistency issue. The group blog plugin needs to be following the joomla access levels the same as joomla / jomsocial does. If you are a joomla administrator or manager you have access all over the site but once in the group blog plugin you are considered a registered member

what the plugins need to check is if the user is in the administrator or manager group then give it full access like jomsocial /joomla does

I hope this makes sense as i don't think i explained it very clearly the first time. The reason this is very important is admin rights must be followed consistently though our product or it limits our customer use. They can't be an admin in 90% of the site then a registered user in another part

I did have test site setup with full access for you guys on a private ticket that is running at the moment but if you need a true working example let me know and ill create it for you.

Thanks
Paul
·
Tuesday, 14 January 2014 10:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

Hm, that's what the original code is actually doing. If you are a super administrator, all groups will be visible when you write a new blog post. Is this not working for you?
·
Tuesday, 14 January 2014 13:18
·
0 Likes
·
0 Votes
·
0 Comments
·
HI Mark,

I needs to be Super Admin, Administrator and Manager all these groups can access all jomsocial areas without being a member of private groups, I'm happy to fiddle myself with it i just cant find where you declare the link between Super Administrator and $isAdmin in your code

Paul
·
Tuesday, 14 January 2014 13:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Paul,

Ah, I see. Currently the only way to identify if the user is a site admin is via the isSiteAdmin method which is located in /components/com_easyblog/helpers/helper.php
·
Tuesday, 14 January 2014 16:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post