Author: jfthomps
Date: Thu Sep 16 17:50:54 2010
New Revision: 997863
URL: http://svn.apache.org/viewvc?rev=997863&view=rev
Log:
modified checkAccess - removed ADMIN_DEVELOPER check for blockAllocations mode
modified getNavMenu - removed ADMIN_DEVELOPER check for blockAllocations link
Modified:
incubator/vcl/trunk/web/.ht-inc/utils.php
Modified: incubator/vcl/trunk/web/.ht-inc/utils.php
URL:
http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/utils.php?rev=997863&r1=997862&r2=997863&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/utils.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/utils.php Thu Sep 16 17:50:54 2010
@@ -447,13 +447,6 @@ function checkAccess() {
return;
}
break;
- case 'blockAllocations':
- if($viewmode != ADMIN_DEVELOPER
&& $user['memberCurrentBlock'] == 0) {
- $mode = "";
- $actionFunction =
"main";
- return;
- }
- break;
case 'viewGroups':
if(! in_array("groupAdmin",
$user["privileges"])) {
$mode = "";
@@ -8720,11 +8713,9 @@ function getNavMenu($inclogout, $inchome
$rt .= "<a href=\"" . BASEURL . SCRIPT .
"?mode=viewRequests\">";
$rt .= "Current Reservations</a></li>\n";
}
- if($viewmode == ADMIN_DEVELOPER || $user['memberCurrentBlock']) {
- $rt .= menulistLI('blockAllocations');
- $rt .= "<a href=\"" . BASEURL . SCRIPT .
"?mode=blockAllocations\">";
- $rt .= "Block Allocations</a></li>\n";
- }
+ $rt .= menulistLI('blockAllocations');
+ $rt .= "<a href=\"" . BASEURL . SCRIPT . "?mode=blockAllocations\">";
+ $rt .= "Block Allocations</a></li>\n";
$rt .= menulistLI('userPreferences');
$rt .= "<a href=\"" . BASEURL . SCRIPT . "?mode=userpreferences\">";
$rt .= "User Preferences</a></li>\n";