diff --git a/pandora/document/models.py b/pandora/document/models.py index df5b8cb6a..d76cac36f 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 \