Revision: 1039
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1039&view=rev
Author:   jberanek
Date:     2009-03-01 23:23:29 +0000 (Sun, 01 Mar 2009)

Log Message:
-----------
* Fixed auth level check in db upgrade code.

Modified Paths:
--------------
    mrbs/trunk/web/dbsys.inc

Modified: mrbs/trunk/web/dbsys.inc
===================================================================
--- mrbs/trunk/web/dbsys.inc    2009-03-01 23:18:07 UTC (rev 1038)
+++ mrbs/trunk/web/dbsys.inc    2009-03-01 23:23:29 UTC (rev 1039)
@@ -589,7 +589,7 @@
   print_header(0,0,0,0,"");
 
   $user = getUserName();
-  if (isset($user) && authGetUserLevel($user))
+  if (isset($user) && (authGetUserLevel($user) >= 2))
   {
     include "upgrade.inc";
     upgrade_database($current_db_schema_version, $db_schema_version);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to