Permalink
Browse files

Move default__acl__ extension up so it is applied before exceptions a…

…re raised and possibly handled.

FIxes GH-74
  • Loading branch information...
Reed O'Brien
Reed O'Brien committed Feb 28, 2011
1 parent 1b30e22 commit da8bf30e9b785c346169ac364c01e32a87f9b290
Showing with 2 additions and 2 deletions.
  1. +2 −2 lumin/node.py
View
@@ -228,6 +228,7 @@ def __init__(self, request, spec=None, unique=True):
self.data={}
self._collection = self.db[self.__collection__]
self._schema = self.__schema__().bind(request=self.request)
+ self.__acl__.extend(self._default__acl__)
if self.spec:
cursor = self.collection.find(spec)
if self.unique:
@@ -242,8 +243,7 @@ def __init__(self, request, spec=None, unique=True):
+ "matched the spec")
acl = self.data.get('__acl__', None)
if acl:
- self.__acl__ = acl
- self.__acl__.extend(self._default__acl__)
+ self.__acl__.extend(acl)
@property
def __name__(self):

0 comments on commit da8bf30

Please sign in to comment.