Skip to content

Commit

Permalink
Merge pull request #206 from dbarzin/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dbarzin authored Oct 30, 2024
2 parents a2eaba4 + c8acc31 commit ffa0b9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 0 additions & 4 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ Migrate database

php artisan migrate

Update composer

composer self-update

Update libraries

composer update
Expand Down
7 changes: 4 additions & 3 deletions app/Http/Controllers/MeasureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,14 @@ public function show(int $id)
'403 Forbidden'
);

// user must have and assigned controls
// user must have one control assigned
abort_if(
(Auth::User()->role === 5) &&
! DB::table('controls')
->where('measure_id', $id)
->leftjoin('control_user', 'control_id', '=', 'controls.id')
->where('user_id', Auth::User()->id)
->join('control_measure', 'control_measure.control_id', '=', 'controls.id')
->join('control_user', 'control_user.control_id', '=', 'controls.id')
->where('control_user.user_id', Auth::User()->id)
->exists(),
Response::HTTP_FORBIDDEN,
'403 Forbidden'
Expand Down
Binary file modified storage/app/repository/ISO27001-2022.en.xlsx
Binary file not shown.

0 comments on commit ffa0b9d

Please sign in to comment.