<?php

namespace App\Http\Requests;

use App\Models\Campaign;

class CampaignStoreRequest extends CampaignRequest
{
    public function authorize(): bool
    {
        $organization = $this->attributes->get('current_organization');
        return $this->user()->can('create', [Campaign::class, $organization]);
    }
}
