Revision: 2149
http://mrbs.svn.sourceforge.net/mrbs/?rev=2149&view=rev
Author: cimorrison
Date: 2011-10-25 09:47:01 +0000 (Tue, 25 Oct 2011)
Log Message:
-----------
Made $auth['only_admin_can_book'] apply to deletions as well
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 2011-10-25 09:35:32 UTC (rev 2148)
+++ mrbs/trunk/web/mrbs_auth.inc 2011-10-25 09:47:01 UTC (rev 2149)
@@ -28,7 +28,7 @@
// made within the page to prevent ordinary users gaining access to admin
features.
$page_level['admin.php'] = 1; // Ordinary users can view room
details
$page_level['approve_entry_handler.php'] = 1; // Ordinary users are allowed
to remind admins
-$page_level['del_entry.php'] = 1; // Ordinary users can delete
their own entries
+$page_level['del_entry.php'] = ($auth['only_admin_can_book']) ? 2
: 1;
$page_level['edit_area_room.php'] = 1; // Ordinary users can view room
details
$page_level['edit_entry.php'] = ($auth['only_admin_can_book']) ? 2
: 1;
$page_level['edit_entry_handler.php'] = ($auth['only_admin_can_book']) ? 2
: 1;
Modified: mrbs/trunk/web/systemdefaults.inc.php
===================================================================
--- mrbs/trunk/web/systemdefaults.inc.php 2011-10-25 09:35:32 UTC (rev
2148)
+++ mrbs/trunk/web/systemdefaults.inc.php 2011-10-25 09:47:01 UTC (rev
2149)
@@ -701,8 +701,8 @@
$auth['smtp']['server'] = 'myserver.example.org';
// General settings
-// If you want only administrators to be able to book slots, set this
-// variable to TRUE
+// If you want only administrators to be able to make and delete bookings,
+// set this variable to TRUE
$auth['only_admin_can_book'] = FALSE;
// If you want only administrators to be able to make repeat bookings,
// set this variable to TRUE
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits