diff --git a/pandora/document/models.py b/pandora/document/models.py index df5b8cb6..d76cac36 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -328,7 +328,7 @@ class Document(models.Model, FulltextMixin): if not user or user.is_anonymous: return False max_level = len(settings.CONFIG['rightsLevels']) - if self.level > max_level: + if self.rightslevel > max_level: return False if self.user == user or \ self.groups.filter(id__in=user.groups.all()).count() > 0 or \