Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
heritage-wow/app/Policies/CharacterProfessionPolicy.php
2021-06-28 17:33:29 +01:00

19 lines
373 B
PHP

<?php
namespace App\Policies;
use App\Models\User;
use App\Models\Character;
use App\Models\CharacterProfession;
use Illuminate\Auth\Access\HandlesAuthorization;
class CharacterProfessionPolicy
{
use HandlesAuthorization;
public function delete(User $user, CharacterProfession $ch_prof)
{
return $user->id === $ch_prof->character->user_id;
}
}