#NEWLINE# def has_access( self , permission_name , view_name ) : #NEWLINE# #INDENT# '\n            Check if current user or public has access to view or menu\n        ' #NEWLINE# if current_user . is_authenticated ( ) : #NEWLINE# #INDENT# return self . _has_view_access ( g . user , permission_name , view_name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . is_item_public ( self , view_name )