Fix permissions en mode clients
This commit is contained in:
parent
64dd0ec746
commit
902e221c0d
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Destailleur Laurent <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Destailleur Laurent <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
|
||||||
@ -107,7 +107,7 @@ if ( $action == 'delete' )
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
|
|
||||||
@ -123,6 +123,11 @@ if ($_GET["propalid"] > 0)
|
|||||||
$propal = new Propal($db);
|
$propal = new Propal($db);
|
||||||
$propal->fetch($_GET['propalid']);
|
$propal->fetch($_GET['propalid']);
|
||||||
|
|
||||||
|
if ($user->societe_id > 0 && $propal->socid <> $user->societe_id)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
|
||||||
$societe = new Societe($db);
|
$societe = new Societe($db);
|
||||||
$societe->fetch($propal->socid);
|
$societe->fetch($propal->socid);
|
||||||
|
|
||||||
@ -716,6 +721,8 @@ et non globalement
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Mode Liste des propales
|
* Mode Liste des propales
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user