Author: jfthomps
Date: Thu Jun 2 20:33:35 2016
New Revision: 1746629
URL: http://svn.apache.org/viewvc?rev=1746629&view=rev
Log:
VCL-944 - typo in getUserResources prevents access to management nodes and
groups
utils.php: modified getUserResources: changed 'mgmtnodeAdmin' to 'mgmtNodeAdmin'
Modified:
vcl/trunk/web/.ht-inc/utils.php
Modified: vcl/trunk/web/.ht-inc/utils.php
URL:
http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/utils.php?rev=1746629&r1=1746628&r2=1746629&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/utils.php (original)
+++ vcl/trunk/web/.ht-inc/utils.php Thu Jun 2 20:33:35 2016
@@ -1907,7 +1907,7 @@ function getUserResources($userprivs, $r
$groupid=0) {
global $user;
if(in_array('managementnodeAdmin', $userprivs))
- $userprivs[] = 'mgmtnodeAdmin';
+ $userprivs[] = 'mgmtNodeAdmin';
$key = getKey(array($userprivs, $resourceprivs, $onlygroups,
$includedeleted, $userid, $groupid));
if(array_key_exists($key, $_SESSION['userresources']))
return $_SESSION['userresources'][$key];