From ce22652d3c1807c24aaf316d9756e2602c2e269c Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Fri, 15 May 2026 15:39:44 +0100 Subject: To simplyfy maintenence BitUser classes have been retired and active code base defaulted to ROLE_MODEL --- includes/install_inc.php | 6 ------ includes/install_packages.php | 7 +++---- 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 @@ 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 ); -- cgit v1.3