Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed Improper Privileged Management
  • Loading branch information
4jean committed Sep 20, 2022
1 parent 6c6d138 commit 10a2e96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/SupportTeam/UserController.php
Expand Up @@ -126,6 +126,7 @@ public function update(UserRequest $req, $id)

$data = $req->except(Qs::getStaffRecord());
$data['name'] = ucwords($req->name);
$data['user_type'] = $user_type;

if($user_is_staff && !$user_is_teamSA){
$data['username'] = Qs::getAppCode().'/STAFF/'.date('Y/m', strtotime($req->emp_date)).'/'.mt_rand(1000, 9999);
Expand Down

0 comments on commit 10a2e96

Please sign in to comment.