acl access causes internal error 500
Created by: ahrse
the "get" call in apps/acls/managers.py has_access function causes a MultipleObjectsReturned Exception in the django db access layer for some, but not all users. Suggestion (without knowing exactly all the implications, but it works): Changing this call to "filter" also returns a correct access right information but tolerates multiple positive results from the db avoiding the exception and the resulting 500 server internal error. Same goes for "get_holders_for". Obviously this is an error anyway: the for is quite useless for the single result the get will provide. for access_entry in self.model.objects.get(content_type=content_type): should be changed to for access_entry in self.model.objects.filter(content_type=content_type):