9833e4db by Kevin Burton

updated user manager to track the role change

1 parent a123fb2f
...@@ -407,12 +407,15 @@ class AccountValidation extends Common\Validation { ...@@ -407,12 +407,15 @@ class AccountValidation extends Common\Validation {
407 } 407 }
408 408
409 public function user_role($val) { 409 public function user_role($val) {
410 /*
410 $user = new User\Account($_POST['uid']); 411 $user = new User\Account($_POST['uid']);
411 try { 412 try {
412 $user->set_role($val); 413 $user->set_role($val);
413 } catch (Exception $e) { 414 } catch (Exception $e) {
414 throw new Exception($e->getMessage()); 415 throw new Exception($e->getMessage());
415 } 416 }
417 */
418 CBV\user_change_role($val, $_POST['uid']);
416 } 419 }
417 420
418 public function password1($val) { 421 public function password1($val) {
......