App\Policies\GenericEntityPolicy::editByOwner PHP Method

editByOwner() public static method

public static editByOwner ( User $user, $itemType, $ownerUserId ) : boolean | mixed
$user app\models\User
$itemType
$ownerUserId
return boolean | mixed
    public static function editByOwner(User $user, $itemType, $ownerUserId)
    {
        $itemType = Utils::getEntityName($itemType);
        if (method_exists("App\\Policies\\{$itemType}Policy", 'editByOwner')) {
            return call_user_func(["App\\Policies\\{$itemType}Policy", 'editByOwner'], $user, $ownerUserId);
        }
        return false;
    }