We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33277
    • 35 Posts
    Dear MODxers,

    I have setup a resource group which contains 2 pages, and assigned permissions this way:

    Group: Administrator
    +--------------+------------+-------------------+-------+
    |Resource group|Minimum role|   Access Policy   |Context|
    +--------------+------------+-------------------+-------+
    |Owner's pages |Author - 100|Load, List and View|  web  |
    +--------------+------------+-------------------+-------+
    


    The user is the default admin with Super User Role.

    At the frontend I have a Login snippet, which will let me to
    authenticate myself into the 'web' context.

    The problem is that I still can't access the two resources. While
    trying to do so I see a login form from the Login snippet as if I
    weren't logged in. When accessing regular pages it shows a logout link
    instead.

    The cache was cleared, sessions reset. I run MODx 2.2.

    I've also tried the 'Resource' policy as well as 'Member - 9999' for the
    minimum role without luck.

    Error logs don't give any hints.
    [ed. note: yurkobb last edited this post 14 years, 6 months ago.]
      <em>The Earth is not the hell, and people aren't cursed, and joy in not a sin, but a gift of God.</em> (Lesia Ukrainka)
      • 1778
      • 659 Posts
      Did you try in an other browser and a new session...Or clear session from manager (that will log you out from manager and close all sessions) then try as 'simple user'... (not connected in mgr at all)
      Cheers
        • 33277
        • 35 Posts
        Quote from: anso at Mar 05, 2012, 09:05 AM
        Did you try in an other browser and a new session...Or clear session from manager (that will log you out from manager and close all sessions) then try as 'simple user'... (not connected in mgr at all)
        Cheers
        Just tried with another browser and it worked! But clearing session didn't help with the primary browser. I will clear my cookies manually. Thank you!
          <em>The Earth is not the hell, and people aren't cursed, and joy in not a sin, but a gift of God.</em> (Lesia Ukrainka)
          • 33277
          • 35 Posts
          Unfortunately the problem is still there: it works only if I'm not logged into manager. As soon as I login to backend, I can't see these resources. How can that happen?
            <em>The Earth is not the hell, and people aren't cursed, and joy in not a sin, but a gift of God.</em> (Lesia Ukrainka)
            • 23299
            • 1,161 Posts
            Did you try flush all permission, etc, whic ends your Manager session? Then see if the front end login and path to the member pages works...
              • 1778
              • 659 Posts
              Did your admin user have also access to web context ? (I guess it's not the case by default Admin is only a mgr user not a web user) maybe the problem is here...
              Not sure at all but ...
              Cheers
                • 33277
                • 35 Posts
                Quote from: Photowebmax at Mar 05, 2012, 09:57 AM
                Did you try flush all permission, etc, whic ends your Manager session? Then see if the front end login and path to the member pages works...
                Yes, but logging out from manager [and logging in to frontend] is not enough, I had to clear cookies first.

                Did your admin user have also access to web context ? (I guess it's not the case by default Admin is only a mgr user not a web user) maybe the problem is here...
                Not sure at all but ...
                Cheers
                The mgr and web access rights seem to be equal: Super User role, Administrator access policy. I will try with other, non-admin user now.
                  <em>The Earth is not the hell, and people aren't cursed, and joy in not a sin, but a gift of God.</em> (Lesia Ukrainka)
                  • 33277
                  • 35 Posts
                  Hmm, the same story with a non-admin. I also tried to give access to the same resources in mgr context with no success.
                    <em>The Earth is not the hell, and people aren't cursed, and joy in not a sin, but a gift of God.</em> (Lesia Ukrainka)
                    • 23299
                    • 1,161 Posts
                    I have two sites with members that need to login to see private pages...

                    I used Login for the login.
                    I used the Peoples snippet to manage the members Group.
                    I created a Private pages system.
                    I created a Roll for the members.
                    I created a new Access Policy for the members with strict limits on what they can do.
                    When I add each member I connect them to the member Group, the Role and the Access Policy.
                    I also created a private hidden Post page that will only show in the menu once members have logged. I then have the NewsPublisher form available to allow members to create posts from the front end. I also use Quip to allow folks to comment on member generated posts.

                    There are a lot of moving parts to all this, but it works great. The nice feature is hiding member related nav links from the main navigation - they only appear once members log in. I can also automatically send members to specific pages once they finish logging in.

                    The connections between groups, users, roles, and access policies in Revo are way complicated. Powerful, but not very intuitive. I found the management of all this to be much easier in Evo than Revo.

                      • 3749
                      • 24,544 Posts
                      Quote from: yurkobb at Mar 05, 2012, 09:47 AM
                      Unfortunately the problem is still there: it works only if I'm not logged into manager. As soon as I login to backend, I can't see these resources. How can that happen?

                      I'm late to this party, and I'm guessing somewhat about the problem, but maybe this will help:

                      When you protect resources by putting them in a resource group that's connected to a user group, you protect them from the admin too. If you really need to see protected resources in the front end or back end, you need to add yourself to all user groups or create an Resource Group Access ACL entry for Administrators for each resource group.


                      ---------------------------------------------------------------------------------------------------------------
                      PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
                      MODX info for everyone: http://bobsguides.com/modx.html
                        Did I help you? Buy me a beer
                        Get my Book: MODX:The Official Guide
                        MODX info for everyone: http://bobsguides.com/modx.html
                        My MODX Extras
                        Bob's Guides is now hosted at A2 MODX Hosting