diff --git a/app/controller/usercontroller.ctrl.php b/app/controller/usercontroller.ctrl.php index 0773dcae..0d7d03c4 100644 --- a/app/controller/usercontroller.ctrl.php +++ b/app/controller/usercontroller.ctrl.php @@ -377,9 +377,12 @@ public function create() { $error['role'] = 'Please select a role for the User.'; } - if(empty($group)){ - $group = NULL; + if((empty($groups)) && ($role == '3')) + { + $groups = NULL; + $error['group'] = 'Please select a group for the User.'; } + if(!$this->User->checkEmail($email)){ $error['email'] = 'This email is already in use in our database. Please use another one.'; } diff --git a/app/view/host/index.php b/app/view/host/index.php index e92819af..83e4d877 100644 --- a/app/view/host/index.php +++ b/app/view/host/index.php @@ -32,7 +32,7 @@