commit | 01a4cd0d6ee2346d4af9eb9849da0681ef76c786 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Mon Jun 09 13:12:40 2014 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Mon Jun 09 13:12:40 2014 -0700 |
tree | 5a557292515635e5b1724e08c5f299c4935ef6b7 | |
parent | 3b678740bc0feedb21870b06fbc15a5dfb0ffeec [diff] |
fix filtering of deployments when adding slivers
diff --git a/planetstack/core/models/site.py b/planetstack/core/models/site.py index b86b7c4..a97de3e 100644 --- a/planetstack/core/models/site.py +++ b/planetstack/core/models/site.py
@@ -121,7 +121,7 @@ ids = [] for deployment in Deployment.objects.all(): acl = deployment.get_acl() - if acl.test(user): + if acl.test(user) == "allow": ids.append(deployment.id) return Deployment.objects.filter(id__in=ids)