diff options
| author | lsces <lester@lsces.co.uk> | 2012-08-06 01:45:01 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2012-08-06 01:45:01 +0100 |
| commit | 957ddaafe60c4267d80cf29a53a68970a85f8089 (patch) | |
| tree | e25d52918ab2157bd03382eea100085dd9e4cd11 | |
| parent | 6bdfcde916ca4bee10b31b04ba3052ec939e4020 (diff) | |
| download | install-957ddaafe60c4267d80cf29a53a68970a85f8089.tar.gz install-957ddaafe60c4267d80cf29a53a68970a85f8089.tar.bz2 install-957ddaafe60c4267d80cf29a53a68970a85f8089.zip | |
ROLE_MODEL enables using role rather than group team permissions.
Started using 'team' to refer to manage sets of users ...
| -rw-r--r-- | install_inc.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/install_inc.php b/install_inc.php index 93e8eef..bf56f55 100644 --- a/install_inc.php +++ b/install_inc.php @@ -61,6 +61,8 @@ function set_menu( $pInstallFiles, $pStep ) { * Global flag to indicate we are installing */ define( 'BIT_INSTALL', 'TRUE' ); +// Uncomment to switch to role team model ... +//define( 'ROLE_MODEL', 'TRUE' ); global $gBitSmarty; // use relative path if no CONFIG_INC path specified - we know we are in installer here... @@ -101,7 +103,11 @@ if( isset( $_REQUEST['submit_db_info'] ) ) { } require_once("../kernel/setup_inc.php"); require_once( 'BitInstaller.php' ); -require_once( USERS_PKG_PATH.'BitUser.php' ); +if ( defined( 'ROLE_MODEL' ) ) { + require_once( USERS_PKG_PATH.'RoleUser.php' ); +} else { + require_once( USERS_PKG_PATH.'BitUser.php' ); +} // set some preferences during installation global $gBitInstaller, $gBitSystem, $gBitThemes; |
