mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 11:31:05 +03:30
change pack to label
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\User;
|
||||
use App\Label;
|
||||
use Doctrine\Tests\Common\Inflector\InflectorTest;
|
||||
|
||||
class LabelPolicy
|
||||
{
|
||||
public function delete(User $User, Label $Label)
|
||||
{
|
||||
// if($User->hasRole('Admin') && $Label->users->count() == 0)
|
||||
return true;
|
||||
}
|
||||
|
||||
public function update(User $User, Label $Label)
|
||||
{
|
||||
// if($User->hasRole('Admin'))
|
||||
return true;
|
||||
}
|
||||
|
||||
public function store(User $User)
|
||||
{
|
||||
// if($User->hasRole('Admin'))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user