Commit 550a53b3bef442b3634e4c6aefe5dce3e2869e43

Authored by jacquiz
1 parent cd6e54eb

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@2882 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php
... ... @@ -31,11 +31,13 @@
31 31  
32 32 require_once("../../../../config/dmsDefaults.php");
33 33  
  34 +
34 35 if (checkSession()) {
35 36 if (isset($fFolderID)) {
  37 + include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
36 38 $oFolder = Folder::get($fFolderID);
37 39 //if a folder has been selected
38   - include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc");
  40 +
39 41 include_once("$default->fileSystemRoot/lib/security/Permission.inc");
40 42 include_once("$default->fileSystemRoot/lib/users/User.inc");
41 43 require_once("$default->fileSystemRoot/presentation/Html.inc");
... ...