1. Queenielass
  2. Support
  3. Monday, May 07 2018, 06:37 PM
I am struggling a bit with making access to only certain user groups match ACL.

1. When a member joins they choose between 2 groups and are automatically assigned as Registered and either Group A (Mentors) or Group B (Mentees)
I want the search to be available to only Mentees (B) and think I have managed this with the SQL.
However rather than a menu-link to Search I needed to make it stand out so created a module with css styling to go to a hidden-menu item with access for only Mentees (B) in the ACL
However the link appears to both groups unless I remove Group B from the Registered access level.
This feels wrong. Could you check for me please? I suspect this is a Joomla issue rather than easy profile but the advanced functions of EP have got me in a knot :o

2. I have created a Manager-only user Group which does not add them as Registered users nor in Mentor or Mentee groups. However they are appearing in Searches which really must not happen. Again, this may be due to my poor configuration of Joomla ACL.
Please can you check this for me to see where I'm going wrong?
Access info in secure tab.
admin Accepted Answer
Admin
Hi,

1) can you please help me to identify the menu item and module by specifying the name of both :)

2) I found that in one of your Users List menu item you have set following Custom SQL Where (see screenshot):
user_id NOT IN (11,8,7,6)
This exclude a specific users with these user id but I think you want to exclude group_id instead user_id, so it become something like
group_id NOT IN (11,8,7,6)
Attachments (1)
  1. more than a month ago
  2. Support
  3. # 1
Queenielass Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 2
admin Accepted Answer
Admin
Hi,
sorry for late reply.

1) The Access Level of the module and of seems correct.

2) try with
user_id NOT IN (SELECT user_id FROM #__user_usergroup_map WHERE group_id IN (11,8,7,6))
We need something like this because there is a INNER JOIN between Joomla User Table and Joomla Usergroups Table. Basically a Sql WHERE like your does not exclude users in registered usergroup.

3) Can you please explain me better? sorry, I did not understood :(
  1. more than a month ago
  2. Support
  3. # 3
Queenielass Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 4
admin Accepted Answer
Admin
Hi,
2) you should put in SQL parameter this:
user_id NOT IN (SELECT user_id FROM #__user_usergroup_map WHERE group_id IN (11,8,7,6))


with this users in usergroup 11,8,7 and 6 should be hidden

3) Social Network plugin show all users, to remove some user please follow these steps:
- Go to Extensions->Plugins
- Search for "Social Network"
- Click to the plugin called "Easy Profile - Social Network"
- Add in parameter "Exclude Users From People List" the comma separated IDs of users, so something like 406,409,....
  1. more than a month ago
  2. Support
  3. # 5
Queenielass Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 6
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.