Modif permission

This commit is contained in:
Rodolphe Quiedeville 2005-08-30 13:08:14 +00:00
parent 046fe2c58c
commit ca6f7cfe83

View File

@ -25,7 +25,7 @@ $page = $_GET["page"];
$sortorder = $_GET["sortorder"];
$sortfield = $_GET["sortfield"];
$sql = "SELECT pwrite ";
$sql = "SELECT pwrite, pread ";
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_tarif_grille_rights ";
$sql .= " WHERE fk_grille = '".$_GET["id"]."'";
$sql .= " AND fk_user = ".$user->id;
@ -42,10 +42,14 @@ if ($resql)
{
$row = $db->fetch_row($resql);
$auth_write = $row[0];
$auth_read = $row[1];
}
$db->free($resql);
}
if ($auth_read == 0)
accessforbidden();
/*
*
*