code: public CmsAccessControlList getAccessControlList(CmsDbContext dbc, CmsResource resource, boolean inheritedOnly)
      throws CmsException {
  
          return getAccessControlList(dbc, resource, inheritedOnly, resource.isFolder(), 0);
      }
docs: Returns the access control list of a given resource.<p>
  
  If <code>inheritedOnly</code> is set, only inherited access control entries
  are returned.<p>
  
  Note: For file resources, *all* permissions set at the immediate parent folder are inherited,
  not only these marked to inherit.
  
  @param dbc the current database context
  @param resource the resource
  @param inheritedOnly skip non-inherited entries if set
  
  @return the access control list of the resource
  
  @throws CmsException if something goes wrong