def is_item_public(self, permission_name, view_name):
permissions = self.get_public_permissions()<EOL>if permissions:<EOL><INDENT>for i in permissions:<EOL><INDENT>if (view_name == i.view_menu.name) and (<EOL>permission_name == i.permission.name<EOL>):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Check if view has public permissions

:param permission_name:
    the permission: can_show, can_edit...
:param view_name:
    the name of the class view (child of BaseView)