staffmanager/app/Policies/ProfilePolicy.php
Miguel Nogueira 5a8c080a31 Beta version
This commit is too large to list all changes.
2020-06-27 00:32:33 +01:00

28 lines
405 B
PHP

<?php
namespace App\Policies;
use App\Profile;
use App\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class ProfilePolicy
{
use HandlesAuthorization;
/**
* Create a new policy instance.
*
* @return void
*/
public function __construct()
{
}
public function edit(User $user, Profile $profile)
{
return $user->is($profile->user);
}
}