Commit 64d114c4d6a2e876beb60fef8c81039c65be5d22
1 parent
a1a9d863
Type: functionality change
Description: Passing through folder object instead of folder id to permissions checks to avoid redundant DB accesses to intsantiate db model objects git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2877 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/editBL.php
| ... | ... | @@ -47,7 +47,7 @@ if (checkSession()) { |
| 47 | 47 | $oFolder = Folder::get($fFolderID); |
| 48 | 48 | if ($oFolder) { |
| 49 | 49 | //if the user can edit the folder |
| 50 | - if (Permission::userHasFolderWritePermission($fFolderID)) { | |
| 50 | + if (Permission::userHasFolderWritePermission($oFolder)) { | |
| 51 | 51 | if (isset($fCollaborationEdit)) { |
| 52 | 52 | //user attempted to edit the folder collaboration process but could not because there is |
| 53 | 53 | //a document currently in this process | ... | ... |