def has_permission(self):
objs = [None]<EOL>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>objs = self.get_perms_objects()<EOL><DEDENT>else:<EOL><INDENT>if hasattr(self, '<STR_LIT>'):<EOL><INDENT>try:<EOL><INDENT>objs = [self.get_object()]<EOL><DEDENT>except Http404:<EOL><INDENT>raise<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>if objs == [None]:<EOL><INDENT>objs = self.get_queryset()<EOL><DEDENT><DEDENT>if (hasattr(self, '<STR_LIT>') and<EOL>self.permission_filter_queryset is not False and<EOL>self.request.method == '<STR_LIT:GET>'):<EOL><INDENT>if objs != [None]:<EOL><INDENT>self.perms_filter_queryset(objs)<EOL><DEDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return check_perms(self.request.user,<EOL>self.get_permission_required(),<EOL>objs, self.request.method)<EOL><DEDENT>
Permission checking for "normal" Django.