code: def check_rights(self, resources, request=None):
          
          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)
docs: Check rights for resources.
  
          :return bool: True if operation is success else HTTP_403_FORBIDDEN