Commit 870acb780249fd5deb749ff4fda80b4cc295da3a

Authored by conradverm
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
lib/permissions/permissionutil.inc.php
... ... @@ -647,6 +647,9 @@ class KTPermissionUtil {
647 647 */
648 648 function inheritPermissionObject(&$oDocumentOrFolder, $aOptions = null) {
649 649 global $default;
  650 +
  651 + $oDocumentOrFolder->cacheGlobal=array();
  652 +
650 653 $bEvenIfNotOwner = KTUtil::arrayGet($aOptions, 'evenifnotowner');
651 654 if (empty($bEvenIfNotOwner) && !KTPermissionUtil::isPermissionOwner($oDocumentOrFolder)) {
652 655 return PEAR::raiseError(_kt("Document or Folder doesn't own its permission object"));
... ...