Archived
1
0
Fork 0

initial commit

This commit is contained in:
Henrik Hautakoski 2021-06-28 17:33:29 +01:00
commit 1e1aa7d461
215 changed files with 35140 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<?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;
}
}