[Weberp-svn] SF.net SVN: weberp:[4323] trunk/includes/session.inc
Brought to you by:
sotandeka,
tim_schofield
From: <tim...@us...> - 2011-01-17 12:26:37
|
Revision: 4323 http://weberp.svn.sourceforge.net/weberp/?rev=4323&view=rev Author: tim_schofield Date: 2011-01-17 12:26:31 +0000 (Mon, 17 Jan 2011) Log Message: ----------- Fix security settings problem with supplier login Modified Paths: -------------- trunk/includes/session.inc Modified: trunk/includes/session.inc =================================================================== --- trunk/includes/session.inc 2011-01-16 12:28:42 UTC (rev 4322) +++ trunk/includes/session.inc 2011-01-17 12:26:31 UTC (rev 4323) @@ -270,10 +270,6 @@ } else { $SupplierLogin=0; } -/* Nasty kludge to allow Supplier only logins as well as Customer logins - .... hmmmmm some work to do here then! */ -if ($SupplierLogin==1) { - $_SESSION['AllowedPageSecurityTokens'][0]=9; -} if (!isset($AllowAnyone)){ @@ -295,6 +291,10 @@ exit; } } +/* Nasty kludge to allow Supplier only logins as well as Customer logins - .... hmmmmm some work to do here then! */ +if ($SupplierLogin==1) { + $_SESSION['AllowedPageSecurityTokens'][0]=9; +} if (in_array(15, $_SESSION['AllowedPageSecurityTokens'])) { /*System administrator login */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |