Comment 1 for bug 503149

Muharem Hrnjadovic (al-maisan) wrote :

If that level of functionality is desired then check_upload_to_archive() (in lib/lp/archiveuploader/|128|) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/archiveuploader/|491|).

Please note that check_upload_to_archive() is a plain function however, and, if memory serves right, only methods can be exposed on the LP API.