How to show a page only to users that belongs to more groups concurrently

26 Jan '16, 02:19 PM
2,151 Views
No Forum Badges

Hi,

I have 3 groups:

- (1) Reader

- (2) Writer

- (3) Ban

The users as default group can only have (1) Reader or (2) Writer.

I have the Ban page as protected for users that belong to group (3) Ban and i want  to show the Ban page only to a user that belongs to both Reader and Ban or Writer and Ban groups. I try to use the session componet GET for the user group but it only read the default group, so if a user belogns both the upon groups the ban page isn't shown. How can i solve the problem?

 
x 0
Follow
Answer Answer at this question and get points!
Forum Expert - Level 5

Hi, you need check relation group of user table not group field. This relation return all groups of a user.

Regards!

 

 

 

 

 
x 0
Answer at this question and get points!