Revision: 1218
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1218&view=rev
Author:   jberanek
Date:     2009-10-18 15:25:13 +0000 (Sun, 18 Oct 2009)

Log Message:
-----------
Slight variation on a patch from Emmanuel Dreyfus (changed variable name)

Modified Paths:
--------------
    mrbs/trunk/web/mrbs_auth.inc
    mrbs/trunk/web/systemdefaults.inc.php

Modified: mrbs/trunk/web/mrbs_auth.inc
===================================================================
--- mrbs/trunk/web/mrbs_auth.inc        2009-10-08 06:16:54 UTC (rev 1217)
+++ mrbs/trunk/web/mrbs_auth.inc        2009-10-18 15:25:13 UTC (rev 1218)
@@ -31,6 +31,11 @@
     return 0;
   }
 
+  if (isset($auth['only_admin_can_book']) && $auth['only_admin_can_book'])
+  {
+    $level = 2;
+  }
+
   return authGetUserLevel($user) >= $level;
 }
 

Modified: mrbs/trunk/web/systemdefaults.inc.php
===================================================================
--- mrbs/trunk/web/systemdefaults.inc.php       2009-10-08 06:16:54 UTC (rev 
1217)
+++ mrbs/trunk/web/systemdefaults.inc.php       2009-10-18 15:25:13 UTC (rev 
1218)
@@ -438,6 +438,10 @@
 // The lowest level of admin allowed to edit other users
 $min_user_editing_level = 2;
 
+// If you want only administrators to be able to book slots, set this
+// variable to TRUE
+$auth['only_admin_can_book'] = FALSE;
+
 // 'auth_db_ext' configuration settings
 // The 'db_system' variable is equivalent to the core MRBS $dbsys variable,
 // and allows you to use any of MRBS's database abstraction layers for


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to