Commit 870acb780249fd5deb749ff4fda80b4cc295da3a
1 parent
a10162f7
WSA-92
"get error when calling move_folder: An existing connection was forcibly closed by the remote host" Fixed. Need to ensure cache is cleared so there is no unexpected data corruption from cache. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7876 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
0 deletions
lib/permissions/permissionutil.inc.php
| @@ -647,6 +647,9 @@ class KTPermissionUtil { | @@ -647,6 +647,9 @@ class KTPermissionUtil { | ||
| 647 | */ | 647 | */ |
| 648 | function inheritPermissionObject(&$oDocumentOrFolder, $aOptions = null) { | 648 | function inheritPermissionObject(&$oDocumentOrFolder, $aOptions = null) { |
| 649 | global $default; | 649 | global $default; |
| 650 | + | ||
| 651 | + $oDocumentOrFolder->cacheGlobal=array(); | ||
| 652 | + | ||
| 650 | $bEvenIfNotOwner = KTUtil::arrayGet($aOptions, 'evenifnotowner'); | 653 | $bEvenIfNotOwner = KTUtil::arrayGet($aOptions, 'evenifnotowner'); |
| 651 | if (empty($bEvenIfNotOwner) && !KTPermissionUtil::isPermissionOwner($oDocumentOrFolder)) { | 654 | if (empty($bEvenIfNotOwner) && !KTPermissionUtil::isPermissionOwner($oDocumentOrFolder)) { |
| 652 | return PEAR::raiseError(_kt("Document or Folder doesn't own its permission object")); | 655 | return PEAR::raiseError(_kt("Document or Folder doesn't own its permission object")); |