l.b.s.EditBug(AuthorizationBase) : class documentation

Part of lp.bugs.security View In Hierarchy

Security adapter for editing bugs.

This is used for operations that are potentially destructive in some way. They aren't heavily locked down, but only users who appear to be legitimate can perform them.

Method checkAuthenticated Allow sufficiently-trusted users to edit bugs.
Method checkUnauthenticated Never allow unauthenticated users to edit a bug.
Method _hasAnyRole Return True if the user has any role on any of these bug targets.

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 _hasAnyRole(self, user, targets):
Return True if the user has any role on any of these bug targets.
def checkAuthenticated(self, user):
Allow sufficiently-trusted users to edit bugs.

Only users who can append to the bug can edit it; in addition, only users who seem to be generally legitimate or who have a relevant role on one of the targets of the bug can edit the bug.

def checkUnauthenticated(self):
Never allow unauthenticated users to edit a bug.
API Documentation for Launchpad, generated by pydoctor at 2019-08-18 00:00:05.