2020-05-13 21:47:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Policies;
|
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
use App\Profile;
|
2020-05-13 21:47:51 +00:00
|
|
|
use App\User;
|
|
|
|
use Illuminate\Auth\Access\HandlesAuthorization;
|
|
|
|
|
|
|
|
class ProfilePolicy
|
|
|
|
{
|
|
|
|
use HandlesAuthorization;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Create a new policy instance.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
2020-10-21 00:29:50 +00:00
|
|
|
|
2020-06-26 23:32:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public function edit(User $user, Profile $profile)
|
|
|
|
{
|
|
|
|
return $user->is($profile->user);
|
2020-05-13 21:47:51 +00:00
|
|
|
}
|
|
|
|
}
|