def _has_perm(self, permission_name, view_menu_name):
if hasattr(self, '<STR_LIT>'):<EOL><INDENT>if (permission_name, view_menu_name) in self.perms:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>self._get_and_cache_perms()<EOL>return (permission_name, view_menu_name) in self.perms<EOL>
Whether the user has this perm