summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/install_inc.php6
-rwxr-xr-xincludes/install_packages.php7
2 files changed, 3 insertions, 10 deletions
diff --git a/includes/install_inc.php b/includes/install_inc.php
index a39e410..8791d7b 100755
--- a/includes/install_inc.php
+++ b/includes/install_inc.php
@@ -105,12 +105,6 @@ if( isset( $_REQUEST['submit_db_info'] ) ) {
require_once '../kernel/includes/setup_inc.php';
use \Bitweaver\Install\BitInstaller;
-/* if ( defined( 'ROLE_MODEL' ) ) {
- use Bitweaver\Users\RoleUser;
-} else {
- use Bitweaver\Users\BitUser;
-} */
-
// set some preferences during installation
global $gBitInstaller, $gBitSystem, $gBitThemes;
$gBitInstaller = new BitInstaller();
diff --git a/includes/install_packages.php b/includes/install_packages.php
index 6979b1d..be5ca2c 100755
--- a/includes/install_packages.php
+++ b/includes/install_packages.php
@@ -1,7 +1,6 @@
<?php
use Bitweaver\BitDb;
-use Bitweaver\Users\BitPermUser;
use Bitweaver\Users\RolePermUser;
/**
@@ -520,7 +519,7 @@ if( !empty( $_REQUEST['cancel'] ) ) {
$gBitUser->mDb->query( "INSERT INTO `".BIT_DB_PREFIX."users_roles` (`user_id`, `role_id`, `role_name`,`role_desc`,`is_default`) VALUES ( ".ROOT_USER_ID.", 3, 'Registered', 'Users logged into the system', 'y')" );
} else {
// $tempUser = new BitUser(); // for BitUser::registerContentType
- $rootUser = new BitPermUser();
+ $rootUser = new RolePermUser();
if( $rootUser->store( $storeHash ) ) {
$gBitUser->mDb->query( "INSERT INTO `".BIT_DB_PREFIX."users_groups` (`user_id`, `group_id`, `group_name`,`group_desc`) VALUES ( ".ROOT_USER_ID.", 1, 'Administrators','Site operators')" );
$rootUser->addUserToGroup( ROOT_USER_ID, 1 );
@@ -558,7 +557,7 @@ if( !empty( $_REQUEST['cancel'] ) ) {
$anonUser->addUserToRole( ANONYMOUS_USER_ID, ANONYMOUS_TEAM_ID);
}
} else {
- $anonUser = new BitPermUser();
+ $anonUser = new RolePermUser();
if( $anonUser->store( $storeHash ) ) {
// Remove anonymous from registered group
$regGroupId = $anonUser->groupExists( 'Registered', ROOT_USER_ID );
@@ -588,7 +587,7 @@ if( !empty( $_REQUEST['cancel'] ) ) {
\Bitweaver\vd( $adminUser->mErrors ); die;
}
} else {
- $adminUser = new BitPermUser();
+ $adminUser = new RolePermUser();
if( $adminUser->store( $storeHash ) ) {
// add user to admin group
$adminUser->addUserToGroup( $adminUser->mUserId, 1 );