Check if user can see assets in statuslabels gate
This commit is contained in:
parent
ec7245965f
commit
d4fa81301d
1 changed files with 1 additions and 2 deletions
|
@ -238,8 +238,7 @@ class StatuslabelsController extends Controller
|
||||||
*/
|
*/
|
||||||
public function checkIfDeployable($id) {
|
public function checkIfDeployable($id) {
|
||||||
$statuslabel = Statuslabel::findOrFail($id);
|
$statuslabel = Statuslabel::findOrFail($id);
|
||||||
|
$this->authorize('view', Asset::class);
|
||||||
$this->authorize('view', $statuslabel);
|
|
||||||
|
|
||||||
if ($statuslabel->getStatuslabelType()=='deployable') {
|
if ($statuslabel->getStatuslabelType()=='deployable') {
|
||||||
return '1';
|
return '1';
|
||||||
|
|
Loading…
Add table
Reference in a new issue