Comment 1 for bug 503149

Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

If that level of functionality is desired then check_upload_to_archive() (in lib/lp/archiveuploader/permission.py|128|) should be exposed. That's the function used for source package upload authorization checks (in lib/lp/archiveuploader/nascentupload.py|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.