launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #26771
Re: [Merge] ~pappacena/launchpad:ocirecipe-subscription into launchpad:master
Pushed requested change.
Diff comments:
> diff --git a/lib/lp/security.py b/lib/lp/security.py
> index a300279..3ed3429 100644
> --- a/lib/lp/security.py
> +++ b/lib/lp/security.py
> @@ -3467,6 +3468,12 @@ class ViewOCIRecipe(AnonymousAuthorization):
> """Anyone can view an `IOCIRecipe`."""
Right! Fixing it.
> usedfor = IOCIRecipe
>
> + def checkUnauthenticated(self):
> + return self.obj.visibleByUser(None)
> +
> + def checkAuthenticated(self, user):
> + return self.obj.visibleByUser(user.person)
> +
>
> class EditOCIRecipe(AuthorizationBase):
> permission = 'launchpad.Edit'
--
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/399544
Your team Launchpad code reviewers is subscribed to branch ~pappacena/launchpad:ocirecipe-private-reconcile-pillar.
References