change pack to label

This commit is contained in:
Fayyazi
2019-10-28 14:16:18 +03:30
parent 7c94a30254
commit dbd0ddc1d4
16 changed files with 254 additions and 112 deletions
@@ -3,18 +3,18 @@
namespace App\Policies;
use App\User;
use App\Pack;
use App\Label;
use Doctrine\Tests\Common\Inflector\InflectorTest;
class PackPolicy
class LabelPolicy
{
public function delete(User $User, Pack $Pack)
public function delete(User $User, Label $Label)
{
// if($User->hasRole('Admin') && $Pack->users->count() == 0)
// if($User->hasRole('Admin') && $Label->users->count() == 0)
return true;
}
public function update(User $User, Pack $Pack)
public function update(User $User, Label $Label)
{
// if($User->hasRole('Admin'))
return true;