[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Users and Security

webmaster@zope.org webmaster@zope.org
Sun, 22 Sep 2002 17:57:14 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/Security.stx#3-70

---------------

      In general, you should always acquire security settings unless
      you have a specific reason not too. This will make managing your
      security settings much easier as much of the work can be done
      from the root folder.

        % Anonymous User - June 19, 2002 12:02 pm:
         So, does "Acquire permission settings" override all permissions specifically set in a folder's security or
         does it append the specifically set permission to the acquired permissions?

        % Anonymous User - Sep. 22, 2002 5:57 pm:
         Like
         permitted(here, perm, role)
         = (here.checked(perm, role)
            OR (    here.checked(perm, "Acquire...") 
                AND permitted(here.aq_parent, perm, role)) 

         where OR, AND is conditional OR, AND resp.???