Skip to content

Commit

Permalink
Create the Gate that goes with the permission
Browse files Browse the repository at this point in the history
  • Loading branch information
inietov committed Jul 20, 2023
1 parent 3b4a2b0 commit 705411e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Providers/AuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ public function boot()
}
});

Gate::define('assets.view.encrypted_custom_fields', function ($user) {
if($user->hasAccess('assets.view.encrypted_custom_fields')){
return true;
}
});

// -----------------------------------------
// Reports
Expand Down

0 comments on commit 705411e

Please sign in to comment.