projects
/
pithos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tests.
[pithos]
/
pithos
/
backends
/
modular.py
diff --git
a/pithos/backends/modular.py
b/pithos/backends/modular.py
index
dedfb65
..
8de2ba6
100644
(file)
--- a/
pithos/backends/modular.py
+++ b/
pithos/backends/modular.py
@@
-964,7
+964,7
@@
class ModularBackend(BaseBackend):
if user == account:
return True
path = '/'.join((account, container, name))
if user == account:
return True
path = '/'.join((account, container, name))
- if self.permissions.access_check(path, self.READ, user) or self.permissions.access_check(path, self.WRITE, user):
+ if self.permissions.public_get(path) is not None:
return True
path = self._get_permissions_path(account, container, name)
if not path:
return True
path = self._get_permissions_path(account, container, name)
if not path:
@@
-976,8
+976,6
@@
class ModularBackend(BaseBackend):
if user == account:
return True
path = '/'.join((account, container, name))
if user == account:
return True
path = '/'.join((account, container, name))
- if self.permissions.access_check(path, self.WRITE, user):
- return True
path = self._get_permissions_path(account, container, name)
if not path:
raise NotAllowedError
path = self._get_permissions_path(account, container, name)
if not path:
raise NotAllowedError