l.s.ViewSourcePackageRelease(AuthorizationBase) : class documentation

Part of lp.security View In Hierarchy

Restrict viewing of source packages.

Packages that are only published in private archives are subject to the same viewing rules as the archive (see class ViewArchive).

If the package is published in any non-private archive, then it is automatically viewable even if the package is also published in a private archive.

Method checkAuthenticated Verify that the user can view the sourcepackagerelease.
Method checkUnauthenticated Check unauthenticated users.

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 checkAuthenticated(self, user):
Verify that the user can view the sourcepackagerelease.
def checkUnauthenticated(self):
Check unauthenticated users.

Unauthenticated users can see the package as long as it's published in a non-private archive.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.