Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Check whether the user has access to object. The user must
have one of the roles in object_roles to allow access.

src/p/r/Products.LDAPUserFolder-2.27/Products/LDAPUserFolder/LDAPUser.py   Products.LDAPUserFolder(Download)
    def allowed(self, object, object_roles=None):
        """ Must override, getRolesInContext is not always called """
        if BasicUser.allowed(self, object, object_roles):
            return 1