From da847dced2693aa4d6e185b582b7bcc52898070c Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Fri, 14 Oct 2016 12:44:48 -0300 Subject: [PATCH] HOT-FIX: Corrige erro de 7bdc8f9 --- sapl/crud/base.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 = []