Commit 0c6dccae0e7a87aba62ee4f0a9be7a7d27996063
1 parent
a50b0bba
Type: functionality change
Description: Added a global variable $default->folderHidingFlag that determines whether or not to enable folder hiding of folders to which users do not have permission. Behaviour before fix: All navigation was viewable to the user Behaviour after fix: Now the user is only have to see folders to which they have access git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2870 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
3 deletions
config/environment.php
| @@ -22,9 +22,9 @@ | @@ -22,9 +22,9 @@ | ||
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | // install path | 24 | // install path |
| 25 | -$default->fileSystemRoot = "/usr/local/www/dms"; | 25 | +$default->fileSystemRoot = "C:/eclipse/workspace/knowledgeTree"; |
| 26 | // server settings | 26 | // server settings |
| 27 | -$default->serverName = "change.to.your.hostname"; | 27 | +$default->serverName = "ktjacqui"; |
| 28 | // whether ssl is enabled or not | 28 | // whether ssl is enabled or not |
| 29 | $default->sslEnabled = false; | 29 | $default->sslEnabled = false; |
| 30 | // Change this to reflect the authentication method you are using | 30 | // Change this to reflect the authentication method you are using |
| @@ -32,11 +32,14 @@ $default->sslEnabled = false; | @@ -32,11 +32,14 @@ $default->sslEnabled = false; | ||
| 32 | $default->authenticationClass = "DBAuthenticator"; | 32 | $default->authenticationClass = "DBAuthenticator"; |
| 33 | require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); | 33 | require_once("$default->fileSystemRoot/lib/authentication/$default->authenticationClass.inc"); |
| 34 | 34 | ||
| 35 | +//enable folder hiding flag | ||
| 36 | +$default->folderHidingFlag = 1; | ||
| 37 | + | ||
| 35 | // Database info | 38 | // Database info |
| 36 | $default->dbHost = "localhost"; | 39 | $default->dbHost = "localhost"; |
| 37 | $default->dbName = "dms"; | 40 | $default->dbName = "dms"; |
| 38 | $default->dbUser = "dms"; | 41 | $default->dbUser = "dms"; |
| 39 | -$default->dbPass = "pass"; | 42 | +$default->dbPass = ""; |
| 40 | 43 | ||
| 41 | // Change this to reflect the database you are using | 44 | // Change this to reflect the database you are using |
| 42 | //require("$default->fileSystemRoot/phplib/db_pgsql.inc"); | 45 | //require("$default->fileSystemRoot/phplib/db_pgsql.inc"); |