mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 00:31:07 +03:30
Structor CSSD
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
<?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;␍
|
||||
}␍
|
||||
}␍
|
||||
|
||||
Reference in New Issue
Block a user