Commit 8f2bede5 authored by jan.koester's avatar jan.koester
Browse files

test

parent 5b1e09a6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1494,6 +1494,15 @@ namespace blogi {
                        json_object_object_add(jback, "label", json_object_new_string(tr(_lang,"Back to list").c_str()));
                        json_object_object_add(jback, "url", json_object_new_string(Args->config->buildurl("settings/content").c_str()));
                        json_object_array_add(jnav, jback);

                        bool isOwn = (postAuthor == currentAuthor);
                        if((isOwn && checkGPO(GPO_CONTENT_DELETE_OWN)) || checkGPO(GPO_CONTENT_DELETE_OTHERS)) {
                            json_object *jdel = json_object_new_object();
                            json_object_object_add(jdel, "label", json_object_new_string(tr(_lang,"Delete post").c_str()));
                            json_object_object_add(jdel, "url", json_object_new_string((Args->config->buildurl("settings/content/delete?id=") + std::to_string(cid)).c_str()));
                            json_object_array_add(jnav, jdel);
                        }

                        json_object_object_add(jroot, "nav", jnav);

                        json_object *jform = json_object_new_object();