Commit 537b3880379c1935e5ec69c8bd112be28075a085
1 parent
e04287c9
Clear caches in inheritPermissionObject
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5642 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
4 additions
and
3 deletions
lib/permissions/permissionutil.inc.php
| ... | ... | @@ -563,9 +563,6 @@ class KTPermissionUtil { |
| 563 | 563 | |
| 564 | 564 | if (is_a($oDocumentOrFolder, 'Document')) { |
| 565 | 565 | // If we're a document, no niggly children to worry about. |
| 566 | - // | |
| 567 | - // Well, except for document versions, which we don't know | |
| 568 | - // how to deal with yet, really. | |
| 569 | 566 | KTPermissionUtil::updatePermissionLookup($oDocumentOrFolder); |
| 570 | 567 | return; |
| 571 | 568 | } |
| ... | ... | @@ -579,11 +576,15 @@ class KTPermissionUtil { |
| 579 | 576 | $aParams = array($oNewPO->getID(), $oOrigPO->getID(), $sFolderIDs); |
| 580 | 577 | DBUtil::runQuery(array($sQuery, $aParams)); |
| 581 | 578 | |
| 579 | + Folder::clearAllCaches(); | |
| 580 | + | |
| 582 | 581 | $sQuery = "UPDATE $default->documents_table SET |
| 583 | 582 | permission_object_id = ? WHERE permission_object_id = ? AND |
| 584 | 583 | parent_folder_ids LIKE ?"; |
| 585 | 584 | DBUtil::runQuery(array($sQuery, $aParams)); |
| 586 | 585 | |
| 586 | + Document::clearAllCaches(); | |
| 587 | + | |
| 587 | 588 | KTPermissionUtil::updatePermissionLookupForPO($oNewPO); |
| 588 | 589 | } |
| 589 | 590 | // }}} | ... | ... |