Commit 45cf1e14aa1abfd4576ce9ed5140efa46ad5fd88
1 parent
05fc0443
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 | 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"); | ... | ... |