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.
1 parent 276ebdc commit 3aa9debCopy full SHA for 3aa9deb
packages/packagesManager.py
@@ -148,6 +148,11 @@ def submitModify(self):
148
149
modifyPack = Package.objects.get(packageName=packageName)
150
151
+ ## Check package ownership
152
+ admin = Administrator.objects.get(pk=userID)
153
+ if ACLManager.CheckPackageOwnership(modifyPack, admin, currentACL) == 0:
154
+ return ACLManager.loadErrorJson('deleteStatus', 0)
155
+
156
diskSpace = modifyPack.diskSpace
157
bandwidth = modifyPack.bandwidth
158
ftpAccounts = modifyPack.ftpAccounts
0 commit comments