From f0d19d1d02d6b9c7bea2c3835b1a53ff5f55c15f Mon Sep 17 00:00:00 2001
From: "rastapopoulos@spip.org" <>
Date: Wed, 31 Aug 2016 13:05:06 +0000
Subject: [PATCH] =?UTF-8?q?Report=20de=20[99305]=20:=20Ne=20jamais=20pr?=
 =?UTF-8?q?=C3=A9juger=20d'o=C3=B9=20sont=20utilis=C3=A9es=20les=20choses?=
 =?UTF-8?q?=20:=20si=20on=20utilise=20une=20API,=20on=20DOIT=20inclure=20l?=
 =?UTF-8?q?a=20librairie=20n=C3=A9cessaire.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 action/editer_document.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/action/editer_document.php b/action/editer_document.php
index 2f4fdba7..ed8c0eda 100644
--- a/action/editer_document.php
+++ b/action/editer_document.php
@@ -257,6 +257,8 @@ function document_instituer($id_document, $champs = array()) {
  * @param bool $ajout
  */
 function medias_revision_document_parents($id_document, $parents = null, $ajout = false) {
+	include_spip('inc/autoriser');
+	
 	if (!is_array($parents)) {
 		return;
 	}
-- 
GitLab