Commit d41d62a4ffb7a493abcf610b2a5cfaf04b0eec51
1 parent
9e2f971e
Removed the use of a static array, it doesn't take individual users into account…
… and messes up the view permissions list. Jira: KTC-765 Committed by: Megan Watson
Showing
1 changed file
with
1 additions
and
1 deletions
lib/permissions/permissionutil.inc.php
| @@ -511,7 +511,7 @@ class KTPermissionUtil { | @@ -511,7 +511,7 @@ class KTPermissionUtil { | ||
| 511 | // check if permission has been set | 511 | // check if permission has been set |
| 512 | // $permArr[permId] = array('folders' => array('id' => bool), 'docs' => array('id' => bool)); | 512 | // $permArr[permId] = array('folders' => array('id' => bool), 'docs' => array('id' => bool)); |
| 513 | if(isset(KTPermissionUtil::$permArr[$iPermId][$lookup][$iDocId])){ | 513 | if(isset(KTPermissionUtil::$permArr[$iPermId][$lookup][$iDocId])){ |
| 514 | - return KTPermissionUtil::$permArr[$iPermId][$lookup][$iDocId]; | 514 | + //return KTPermissionUtil::$permArr[$iPermId][$lookup][$iDocId]; |
| 515 | } | 515 | } |
| 516 | 516 | ||
| 517 | $oPL = KTPermissionLookup::get($oFolderOrDocument->getPermissionLookupID()); | 517 | $oPL = KTPermissionLookup::get($oFolderOrDocument->getPermissionLookupID()); |