// validation queue.
private function load_pending_validations()
{
- require_once('validations.inc.php');
$this->pending_validation_unsuspend =
Validate::get_typed_requests_count($this->user->id(), 'gapps-unsuspend');
}
}
if (!$this->pending_update_suspension && !$this->pending_validation_unsuspend) {
- require_once('validations.inc.php');
$unsuspend = new GoogleAppsUnsuspendReq($this->user);
$unsuspend->submit();
$this->pending_validation_unsuspend = true;
if (!$this->pending_create) {
// Retrieves information on the new account.
- // TODO: retreive first_name and last_name from the profile.
- if (!$user->hasProfile()) {
- $prenom = $user->displayName();
- $nom = $user->fullName();
+ if (!$this->user->hasProfile()) {
+ $prenom = $this->user->displayName();
+ $nom = $this->user->fullName();
} else {
- $prenom = $user->profile()->firstName();
- $nom = $user->profile()->lastName();
+ $prenom = $this->user->profile()->firstName();
+ $nom = $this->user->profile()->lastName();
}
// Adds an 'unprovisioned' entry in the gapps_accounts table.