l.s.PublicOrPrivateTeamsExistence(AuthorizationBase) : class documentation

Part of lp.security View In Hierarchy

Restrict knowing about private teams' existence.

Knowing the existence of a private team allow traversing to its URL and displaying basic information like name, displayname.

Method checkUnauthenticated Unauthenticated users can only view public teams.
Method checkAuthenticated By default, we simply perform a View permission check.

Inherited from AuthorizationBase:

Method __init__ Undocumented
Method checkPermissionIsRegistered Pass through to checkPermission.
Method forwardCheckAuthenticated Forward request to another security adapter.
Method forwardCheckUnauthenticated Forward request to another security adapter.
Method _checkAndFetchNext Undocumented
def checkUnauthenticated(self):
Unauthenticated users can only view public teams.
def checkAuthenticated(self, user):
By default, we simply perform a View permission check.

We also grant limited viewability to users who can see PPAs and branches owned by the team, and members of parent teams so they can see the member-listings.

In other scenarios, the context in which the permission is required is responsible for pre-caching the launchpad.LimitedView permission on each team which requires it.

API Documentation for Launchpad, generated by pydoctor at 2019-06-24 00:00:06.