params) parent::post($request); if( $this->isLoggedIn() ) { // Permission $permission = array(); $permission['action'] = 'delete_users'; $permission['apps'] = $this->getUserApps(); //Load Conf Admin $this->loadConfAdmin(); if( $this->validatePermission($permission) ) { $uidUser = $this->getParam('accountUid'); $uidNumberUser = $this->getParam('accountUidNumber'); //Field Validation if(trim($uidUser) == "" && isset($uidUser)) Errors::runException( "ADMIN_UID_EMPTY" ); if(trim($uidNumberUser) == "" && isset($uidNumberUser)) Errors::runException( "ADMIN_UIDNUMBER_EMPTY" ); // Delete User $params = array(); $params['uid'] = $uidUser; $params['uidnumber'] = $uidNumberUser; $msg = $this->deleteUser( $params ); if( $msg['status'] == false ) { Errors::runException( "ADMIN_DELETE_USER", $msg['msg'] ); } $this->setResult( array( "deleteUser" => true ) ); } else { Errors::runException( "ACCESS_NOT_PERMITTED" ); } } return $this->getResponse(); } } ?>