60 $this->Database =
get_package(
'database' ,
'last' , __FILE__ );
61 $this->PageComposer =
get_package(
'page::page_composer' ,
'last' , __FILE__ );
62 $this->PermitAlgorithms =
get_package(
'permit::permit_algorithms' ,
'last' , __FILE__ );
63 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
64 $this->SecurityUtilities =
get_package(
'security::security_utilities' ,
'last' , __FILE__ );
65 $this->UserAccess =
get_package(
'user::user_access' ,
'last' , __FILE__ );
66 $this->UserAlgorithms =
get_package(
'user::user_algorithms' ,
'last' , __FILE__ );
100 if( $this->PermitAlgorithms->object_has_permit(
false ,
'user' ,
'user_manager' ) === false )
102 $Password = $this->Security->get_p(
'current_password' ,
'string' );
103 if( $this->UserAlgorithms->validate_auth( $User->login , $Password ) === false )
105 $this->PageComposer->add_error_message(
'illegal_current_password' );
112 catch( Exception $e )
144 $User = $this->UserAccess->select_list( $this->Security->get_p(
'user_record_id' ,
'integer_list' ) );
147 $Email = $this->Security->get_p(
'email' ,
'email' );
148 if( $User->email != $Email && $this->UserAlgorithms->email_exists( $Email ) )
150 $this->PageComposer->add_error_message(
'email_exists' );
161 catch( Exception $e )
193 $ids = $this->SecurityUtilities->get_global(
'_id_' ,
'integer' ,
CHECKBOX_IDS );
195 if( isset( $ids[ 0 ] ) )
197 $ids = implode(
',' , $ids );
199 $Users = $this->UserAccess->unsafe_select( $this->UserAccess->NativeTable.
200 ".id IN( $ids ) AND `system` = 1" );
202 if( isset( $Users[ 0 ] ) )
205 $PageComposer->add_error_message(
'cant_delete_system_users' );
215 catch( Exception $e )
243 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
245 $ContextSet->execute( $Options , $this , __FILE__ );
247 catch( Exception $e )