Browse Source

Apply organization filtering to subclasses of Organization as well.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1502 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 years ago
parent
commit
919018612c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      addons/userrights/userrightsprofile.class.inc.php

+ 2 - 1
addons/userrights/userrightsprofile.class.inc.php

@@ -746,7 +746,7 @@ exit;
 		// Determine how to position the objects of this class
 		//
 		$aCallSpec = array($sClass, 'MapContextParam');
-		if ($sClass == 'Organization')
+		if (($sClass == 'Organization') || is_subclass_of($sClass, 'Organization'))
 		{
 			$sAttCode = 'id';
 		}
@@ -790,6 +790,7 @@ exit;
 		
 		// Check if the condition points to a hierarchical key
 		$bConditionAdded = false;
+
 		if ($sAttCode == 'id')
 		{
 			// Filtering on the objects themselves