Only return resourcelinks which are not deleted
@@ -73,15 +73,20 @@ int DeRestPluginPrivate::getAllResourcelinks(ApiRequest &req, ApiResponse &rsp)
{
Q_UNUSED(req);
for (const Resourcelinks &rl : resourcelinks)
+ {
+ if (rl.state == Resourcelinks::StateNormal)
{
rsp.map[rl.id] = rl.data;
}
+ }
if (resourcelinks.empty())
{
rsp.str = "{}"; // empty
}
+ rsp.httpStatus = HttpStatusOk;
+
return REQ_READY_SEND;
}
