<?php

namespace App\Policies;

use App\Models\ContactMessage;
use App\Models\User;

class ContactMessagePolicy extends BaseAdminPolicy
{
    public function viewAny(User $user): bool { return $this->isContentUser($user); }
    public function view(User $user, ContactMessage $message): bool { return $this->isContentUser($user); }
    public function update(User $user, ContactMessage $message): bool { return $this->isContentUser($user); }
    public function reply(User $user, ContactMessage $message): bool { return $this->isContentUser($user); }
    public function delete(User $user, ContactMessage $message): bool { return $this->isAdmin($user); }
}
