Skip to content
Snippets Groups Projects
Commit a0bb4b19 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Permission to read donation doc

parent 2f6f53b8
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,11 @@
*/
/**
\file htdocs/admin/dons.php
\ingroup dons
\brief Page d'administration/configuration du module Dons
\version $Id$
*/
* \file htdocs/admin/dons.php
* \ingroup dons
* \brief Page d'administration/configuration du module Dons
* \version $Id$
*/
require("./pre.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/admin.lib.php");
require_once(DOL_DOCUMENT_ROOT."/don.class.php");
......@@ -57,7 +57,7 @@ if ($_GET["action"] == 'specimen')
if ($obj->write_file($don,$langs) > 0)
{
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=don&file=SPECIMEN.html");
header("Location: ".DOL_URL_ROOT."/document.php?modulepart=donation&file=SPECIMEN.html");
return;
}
else
......@@ -85,7 +85,7 @@ if ($_GET["action"] == 'setdoc')
// On active le modele
$type='donation';
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."document_model";
$sql_del .= " WHERE nom = '".$_GET["value"]."' AND type = '".$type."'";
$sql_del.= " WHERE nom = '".$_GET["value"]."' AND type = '".$type."'";
$result1=$db->query($sql_del);
$sql = "INSERT INTO ".MAIN_DB_PREFIX."document_model (nom,type) VALUES ('".$_GET["value"]."','".$type."')";
$result2=$db->query($sql);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment