We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 716f18a + 7083b62 commit e3856dcCopy full SHA for e3856dc
pypi_server/handlers/pypi/package.py
@@ -282,6 +282,10 @@ def action_file_upload(self):
282
raise HTTPError(404)
283
284
package = Package.get(lower_name=package_name)
285
+
286
+ if package.owner != self.current_user and not self.current_user.is_admin:
287
+ raise HTTPError(403)
288
289
version = package.create_version(self.get_body_argument('version'))
290
291
uploaded_file = self.request.files['content'][0]
0 commit comments