Part of lp.services.webapp
|Class||LaunchpadSecurityPolicy||No class docstring; 6/7 methods documented|
|Function||precache_permission_for_objects||Precaches the permission for the objects into the policy cache.|
|Function||check_permission||Like zope.security.management.checkPermission, but also ensures that|
|Function||clear_cache||clear current interaction's IApplicationRequests' authorization caches.|
|Class||available_with_permission||Function decorator that ensures the user has the given permission on|
Adapters are permitted to delegate checks to other adapters, and this manages that delegation such that the minimum number of checks are made, subject to a breadth-first check of delegations.
This also updates
cache as it goes along, though
cache can be
if no caching is desired. Only leaf values are cached; the results of a
delegated authorization are not cached.
Raises ValueError if the permission doesn't exist.