diff --git a/sapl/crud/base.py b/sapl/crud/base.py index b1b4d3639..1077c55a3 100644 --- a/sapl/crud/base.py +++ b/sapl/crud/base.py @@ -234,15 +234,14 @@ class CrudBaseMixin(CrispyLayoutFormMixin): if hasattr(obj, 'public'): self.permission_required = list( set(self.permission_required) - set(obj.public)) - - self.permission_required = tuple(( - self.permission(pr) for pr in self.permission_required)) - - if not hasattr(obj, 'públic'): + else: obj.public = list( set(self.permission_required) - set((RP_LIST, RP_DETAIL, RP_ADD, RP_CHANGE, RP_DELETE))) + self.permission_required = tuple(( + self.permission(pr) for pr in self.permission_required)) + else: obj.public = []