28 |
|
|
29 |
include_once("./inc.php"); |
include_once("./inc.php"); |
30 |
|
|
|
$grant_query=''; |
|
31 |
$etape = 2; |
$etape = 2; |
32 |
$ok = 0; |
$ok = 0; |
33 |
|
|
62 |
else |
else |
63 |
{ |
{ |
64 |
require_once($dolibarr_main_document_root . "/lib/pgsql.lib.php"); |
require_once($dolibarr_main_document_root . "/lib/pgsql.lib.php"); |
|
require_once($dolibarr_main_document_root . "/lib/grant.postgres.php"); |
|
65 |
$choix=2; |
$choix=2; |
66 |
} |
} |
67 |
|
|
260 |
if ($ok) |
if ($ok) |
261 |
{ |
{ |
262 |
// Droits sur les tables |
// Droits sur les tables |
263 |
if ($grant_query) { // Non null si postgresql |
$grant_query=$db->getGrantForUser($dolibarr_main_db_user); |
264 |
|
|
265 |
|
if ($grant_query) // Seules les bases qui en ont besoin le definisse |
266 |
|
{ |
267 |
if ($db->query($grant_query)) |
if ($db->query($grant_query)) |
268 |
{ |
{ |
269 |
print "<tr><td>Grant User</td><td>".$langs->trans("OK")."</td></tr>"; |
print "<tr><td>Grant User</td><td>".$langs->trans("OK")."</td></tr>"; |