launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #26614
Re: [Merge] ~pappacena/launchpad:snap-pillar-subscribe-removal-job into launchpad:master
Review: Approve
Diff comments:
> diff --git a/lib/lp/snappy/model/snap.py b/lib/lp/snappy/model/snap.py
> index dabc6fe..f173d65 100644
> --- a/lib/lp/snappy/model/snap.py
> +++ b/lib/lp/snappy/model/snap.py
> @@ -1141,6 +1145,9 @@ class Snap(Storm, WebhookTargetMixin):
> return True
> if user is None:
> return False
> + roles = IPersonRoles(user)
> + if roles.in_admin:
> + return True
Is this needed, since get_snap_privacy_filter still handles the admin case even though it does so differently?
> store = IStore(self)
> return not store.find(
> Snap,
--
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/398318
Your team Launchpad code reviewers is subscribed to branch ~pappacena/launchpad:snap-pillar-subscribe.
References