Skip to content

Commit

Permalink
Registration: renew coordinators and coaches #369
Browse files Browse the repository at this point in the history
  • Loading branch information
uaoleg committed Mar 22, 2016
1 parent c2394d5 commit ce0600a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion common/models/User/ApprovalRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function attributeLabels()
public function rules()
{
return array_merge(parent::rules(), array(
array('userId, dateCreated', 'required'),
array('userId, role, dateCreated', 'required'),
));
}

Expand Down
9 changes: 0 additions & 9 deletions web/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,15 +368,6 @@ public function actionSignup()
// If no errors, than create and auth user
if (!$user->hasErrors()) {

// Send an email notification about new approve required
$approver = $user->getApprover();
if ($approver) {
\yii::app()->cli->runCommand('email', 'coachOrCoordinatorNotify', array(
'emailTo' => (string)$approver->email,
'userId' => (string)$user->_id,
), array(), true);
}

// Save user
$user->save();

Expand Down

0 comments on commit ce0600a

Please sign in to comment.