Commit 550a53b3bef442b3634e4c6aefe5dce3e2869e43
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
Showing
1 changed file
with
3 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderCollaborationBL.php
| @@ -31,11 +31,13 @@ | @@ -31,11 +31,13 @@ | ||
| 31 | 31 | ||
| 32 | require_once("../../../../config/dmsDefaults.php"); | 32 | require_once("../../../../config/dmsDefaults.php"); |
| 33 | 33 | ||
| 34 | + | ||
| 34 | if (checkSession()) { | 35 | if (checkSession()) { |
| 35 | if (isset($fFolderID)) { | 36 | if (isset($fFolderID)) { |
| 37 | + include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | ||
| 36 | $oFolder = Folder::get($fFolderID); | 38 | $oFolder = Folder::get($fFolderID); |
| 37 | //if a folder has been selected | 39 | //if a folder has been selected |
| 38 | - include_once("$default->fileSystemRoot/lib/foldermanagement/Folder.inc"); | 40 | + |
| 39 | include_once("$default->fileSystemRoot/lib/security/Permission.inc"); | 41 | include_once("$default->fileSystemRoot/lib/security/Permission.inc"); |
| 40 | include_once("$default->fileSystemRoot/lib/users/User.inc"); | 42 | include_once("$default->fileSystemRoot/lib/users/User.inc"); |
| 41 | require_once("$default->fileSystemRoot/presentation/Html.inc"); | 43 | require_once("$default->fileSystemRoot/presentation/Html.inc"); |