Permalink
Browse files

don't blindly extend

  • Loading branch information...
1 parent da8bf30 commit 0d4ce41faff0d9cc218bbcecaaa0dc7095f9c346 @reedobrien reedobrien committed Jun 11, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lumin/node.py
View
4 lumin/node.py
@@ -228,7 +228,9 @@ 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__)
+ for item in self._default__acl__:
+ if item not in self.__acl__:
+ self.__acl__.append(item)
if self.spec:
cursor = self.collection.find(spec)
if self.unique:

0 comments on commit 0d4ce41

Please sign in to comment.