<?php

namespace App\Policies;

use App\Models\User;
use App\Models\Party;

class PartyPolicy
{
    public function viewAny(User $user): bool { return true; }
    public function view(User $user, Party $party): bool { return true; }
    public function create(User $user): bool { return true; }
    public function update(User $user, Party $party): bool { return true; }
    public function delete(User $user, Party $party): bool { return true; }
    public function restore(User $user, Party $party): bool { return $user->is_admin ?? true; }
    public function forceDelete(User $user, Party $party): bool { return $user->is_admin ?? true; }
}
