Diff:
---
 calm/uploads.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calm/uploads.py b/calm/uploads.py
index 135629a..439ef2a 100644
--- a/calm/uploads.py
+++ b/calm/uploads.py
@@ -363,7 +363,7 @@ def auth_check(args, m, scan_result, packages, 
direct_upload):
         return
 
     # direct uploads must now be explicitly enabled for a maintainer
-    if packages and direct_upload and not m.uploads_allowed:
+    if scan_result.packages and direct_upload and not m.uploads_allowed:
         logging.error("direct uploads are not enabled for maintainer '%s'" % 
(m.name))
         scan_result.error = True
         return

Reply via email to