Skip to content

Commit

Permalink
Merge pull request #212 from iConn/patch-4
Browse files Browse the repository at this point in the history
Critical Security - Privilege Scalation
  • Loading branch information
thyseus authored Sep 15, 2016
2 parents f314752 + e12c745 commit fc27335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user/controllers/YumUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public function actionUpdate($id) {

if(isset($_POST['YumUser'])) {
$user->attributes = $_POST['YumUser'];
$user->scenario = Yii::app()->user->hasRole('UserManager') ? 'managerUserUpdate' : 'userUpdate';

$user->validate();
if($profile && isset($_POST['YumProfile']) )
Expand Down

0 comments on commit fc27335

Please sign in to comment.