~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/mail/commands.py

[r=sinzui][bug=475775] Ensure that when a bug is marked as private or
        security_related, the correct direct subscriptions are in place.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
                context, providing=providedBy(context))
242
242
 
243
243
        # Apply requested changes.
 
244
        user = getUtility(ILaunchBag).user
244
245
        if security_related:
245
 
            user = getUtility(ILaunchBag).user
246
246
            if context.setPrivate(True, user):
247
247
                edited = True
248
248
                edited_fields.add('private')
249
249
        if context.security_related != security_related:
250
 
            context.setSecurityRelated(security_related)
 
250
            context.setSecurityRelated(security_related, user)
251
251
            edited = True
252
252
            edited_fields.add('security_related')
253
253