Fix group deleted state handling
@@ -702,7 +702,7 @@ int DeRestPluginPrivate::setGroupState(const ApiRequest &req, ApiResponse &rsp)
return REQ_READY_SEND;
}
- if (!group || (group->state() == Group::StateDeleted))
+ if (!group || (group->state() != Group::StateNormal))
{
rsp.httpStatus = HttpStatusNotFound;
rsp.list.append(errorToMap(ERR_RESOURCE_NOT_AVAILABLE, QString("/groups/%1").arg(id), QString("resource, /groups/%1, not available").arg(id)));
