7 Replies Latest reply on Dec 7, 2012 12:20 AM by nandhana03

    Role permission not getting overrided

    nandhana03

      hiii...

            I've implemented portal-page configuration(via XML) for my application deployed in GateIn3.2..... I've 2 roles namely role1 & role2..... when I login with a User having role1 & role2, I need to display only role1 User portlet....  but now itz displaying portlets belonging to both roles ......

        • 1. Re: Role permission not getting overrided
          nfilotto

          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

            Your two roles role1, role2 are JEE roles or GateIn portal role (group + membership) ?

            • 3. Re: Role permission not getting overrided
              anishantony

              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

                Do you have any pages that can be accessed only by users with role "Student"?

                • 5. Re: Role permission not getting overrided
                  anishantony

                  No, Every 'Students' page can accessed by 'Teacher'...

                  • 6. Re: Role permission not getting overrided
                    nfilotto

                    What you describe is wierd, I have just tried it and did not have the same behavior. Here is what I did:

                    1. I created the page "Welcome2" and assigned the access permission to the role "publisher" of the group "/platform/users"
                    2. I created the page "Welcome3" and assigned the access permission to the role "redactor" of the group "/platform/users"
                    3. I created the page "Welcome4" and assigned the access permission to the roles "redactor" and "publisher" of the group "/platform/users"
                    4. I created the page "Welcome5" and assigned the access permission to the role specific role "*" (which means any roles) of the group "/platform/users"
                    5. I created a user "publisher" and gave him the role "publisher" of the group "/platform/users"
                    6. I created a user "redactor" and gave him the role "redactor" of the group "/platform/users"
                    7. 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:

                    1. "Welcome2" since he has the exepected role
                    2. "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)
                    3. "Welcome5" since it is accessible to any users of the group "/platform/users" whatever his role

                     

                    The user "redactor" can see the pages:

                    1. "Welcome3" since he has the exepected role
                    2. "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)
                    3. "Welcome5" since it is accessible to any users of the group "/platform/users" whatever his role

                     

                    The user "both" can see all the pages:

                    1. "Welcome2" since one of his role is the exepected role
                    2. "Welcome3" since one of his role is the exepected role
                    3. "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)
                    4. "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

                      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..