~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/distroseries.py

  • Committer: Raphael Badin
  • Date: 2011-05-05 13:01:50 UTC
  • mto: This revision was merged to the branch mainline in revision 12988.
  • Revision ID: raphael.badin@canonical.com-20110505130150-ktehsl7twlm10j4f
Roll back 12977.

Show diffs side-by-side

added added

removed removed

Lines of Context:
784
784
        if self.do_copy(
785
785
            'selected_differences', sources, self.context.main_archive,
786
786
            self.context, destination_pocket, include_binaries=False,
787
 
            dest_url=series_url, dest_display_name=series_title):
 
787
            dest_url=series_url, dest_display_name=series_title,
 
788
            person=self.user):
788
789
            # The copy worked so we can redirect back to the page to
789
790
            # show the results.
790
791
            self.next_url = self.request.URL
803
804
        This method is used as a condition for the above sync action, as
804
805
        well as directly in the template.
805
806
        """
806
 
        return (check_permission('launchpad.Edit', self.context) and
 
807
        return (self.user is not None and
 
808
                self.context.main_archive.hasAnyPermission(self.user) and
807
809
                self.cached_differences.batch.total() > 0)
808
810
 
809
811
    @property