Commit 64d114c4d6a2e876beb60fef8c81039c65be5d22

Authored by jacquiz
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
presentation/lookAndFeel/knowledgeTree/foldermanagement/editBL.php
@@ -47,7 +47,7 @@ if (checkSession()) { @@ -47,7 +47,7 @@ if (checkSession()) {
47 $oFolder = Folder::get($fFolderID); 47 $oFolder = Folder::get($fFolderID);
48 if ($oFolder) { 48 if ($oFolder) {
49 //if the user can edit the folder 49 //if the user can edit the folder
50 - if (Permission::userHasFolderWritePermission($fFolderID)) { 50 + if (Permission::userHasFolderWritePermission($oFolder)) {
51 if (isset($fCollaborationEdit)) { 51 if (isset($fCollaborationEdit)) {
52 //user attempted to edit the folder collaboration process but could not because there is 52 //user attempted to edit the folder collaboration process but could not because there is
53 //a document currently in this process 53 //a document currently in this process