-
1. Re: Role permission not getting overrided
nfilotto Oct 29, 2012 7:01 AM (in response to nandhana03)I'm not sure I understand your use case, for me if your user has both roles it is the expected behavior to see portlets of both roles. Why do you believe that it should display only portlets of role1 ?
-
2. Re: Role permission not getting overrided
hoang_to Oct 29, 2012 10:27 PM (in response to nandhana03)Your two roles role1, role2 are JEE roles or GateIn portal role (group + membership) ?
-
3. Re: Role permission not getting overrided
anishantony Dec 5, 2012 5:59 AM (in response to hoang_to)I too have the same problem. Now will Explain it with an example
I have created three members, Ram, Seetha and krish. Also i am created two roles Teacher and Student. All pages of Student role can accessed by Teacher role but all pages of Teacher cant accessed by Students. So i assigned these two roles to above users in the following order
Ram - Student
Seetha - Teacher
Krish - both Student and Teacher
In the case of Krish i need only Higher priority role (Teacher) and I don't needed the lower priority role. But currently i got both roles to Krish and which results the duplication of items on navigation bar. How can i solve this?
with regards
Anish Antony
-
4. Re: Role permission not getting overrided
nfilotto Dec 5, 2012 5:12 PM (in response to anishantony)Do you have any pages that can be accessed only by users with role "Student"?
-
5. Re: Role permission not getting overrided
anishantony Dec 6, 2012 12:51 AM (in response to nfilotto)No, Every 'Students' page can accessed by 'Teacher'...
-
6. Re: Role permission not getting overrided
nfilotto Dec 6, 2012 5:41 AM (in response to anishantony)What you describe is wierd, I have just tried it and did not have the same behavior. Here is what I did:
- I created the page "Welcome2" and assigned the access permission to the role "publisher" of the group "/platform/users"
- I created the page "Welcome3" and assigned the access permission to the role "redactor" of the group "/platform/users"
- I created the page "Welcome4" and assigned the access permission to the roles "redactor" and "publisher" of the group "/platform/users"
- I created the page "Welcome5" and assigned the access permission to the role specific role "*" (which means any roles) of the group "/platform/users"
- I created a user "publisher" and gave him the role "publisher" of the group "/platform/users"
- I created a user "redactor" and gave him the role "redactor" of the group "/platform/users"
- I created a user "both" and gave him the roles "redactor" and "publisher" of the group "/platform/users"
The user "publisher" can see the pages:
- "Welcome2" since he has the exepected role
- "Welcome4" since he has one of the expected roles (indeed when you set several permissions to a page we need at least one of the permissions to be able to access to it)
- "Welcome5" since it is accessible to any users of the group "/platform/users" whatever his role
The user "redactor" can see the pages:
- "Welcome3" since he has the exepected role
- "Welcome4" since he has one of the expected roles (indeed when you set several permissions to a page we need at least one of the permissions to be able to access to it)
- "Welcome5" since it is accessible to any users of the group "/platform/users" whatever his role
The user "both" can see all the pages:
- "Welcome2" since one of his role is the exepected role
- "Welcome3" since one of his role is the exepected role
- "Welcome4" since he has one of the expected roles (indeed when you set several permissions to a page we need at least one of the permissions to be able to access to it)
- "Welcome5" since it is accessible to any users of the group "/platform/users" whatever his role
I hope that this example will give you a better understanding of how the roles work
-
7. Re: Role permission not getting overrided
nandhana03 Dec 7, 2012 12:20 AM (in response to nfilotto)Hi Minh Hoang To,
Sorry for the late response.
It is the GateIn portal role (group + membership), not JEE roles.
Can we just set priority anywhere in GateIn so that pages assigned to ONLY 'role1' is visible to those users having roles 'role1' and 'role2'
Thanks..