<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_rights(self, resources, request=None):
 """ Check rights for resources. :return bool: True if operation is success else HTTP_403_FORBIDDEN """

        if not self.auth:
            return True

        try:
            if not self.auth.test_rights(resources, request=request):
                raise AssertionError()

        except AssertionError, e:
            raise HttpError("Access forbiden. {0}".format(e), status=status.HTTP_403_FORBIDDEN)