~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/model/archive.py

[r=julian-edwards][bug=777911,
 780429][rollback=12988] Revert part of r12988's behaviour.
 Archive.syncSource(s) bypass do_copy's permission check,
 as they are protected by launchpad.Append. CopyChecker.checkCopy no longer
 checks launchpad.Append itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1523
1523
        else:
1524
1524
            series = None
1525
1525
 
1526
 
        # Perform the copy, may raise CannotCopy.
 
1526
        # Perform the copy, may raise CannotCopy. Don't do any further
 
1527
        # permission checking: this method is protected by
 
1528
        # launchpad.Append, which is mostly more restrictive than archive
 
1529
        # permissions, except that it also allows ubuntu-security to
 
1530
        # copy packages they wouldn't otherwise be able to.
1527
1531
        do_copy(
1528
 
            sources, self, series, pocket, include_binaries, person=person)
 
1532
            sources, self, series, pocket, include_binaries, person=person,
 
1533
            check_permissions=False)
1529
1534
 
1530
1535
    def getAuthToken(self, person):
1531
1536
        """See `IArchive`."""