mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 12:21:07 +03:30
35 lines
711 B
PHP
35 lines
711 B
PHP
<?php
|
|
|
|
|
|
|
|
namespace App\Policies;
|
|
|
|
|
|
|
|
use App\User;
|
|
|
|
use App\TestType;
|
|
|
|
use Doctrine\Tests\Common\Inflector\InflectorTest;
|
|
|
|
|
|
|
|
class TestTypePolicy
|
|
|
|
{
|
|
|
|
|
|
|
|
public function delete(User $User, TestType $TestType)
|
|
|
|
{
|
|
|
|
if($User->hasRole('Admin'))
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function update(User $User, TestType $TestType)
|
|
|
|
{
|
|
|
|
// if($User->hasRole('Admin'))
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function store(User $User)
|
|
|
|
{
|
|
|
|
// if($User->hasRole('Admin'))
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
public function getInputs(User $User)
|
|
|
|
{
|
|
|
|
// if($User->hasRole('Admin'))
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|