mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-03-23 19:08:41 +00:00
- ✨ Refactor edit.blade.php to handle admin-specific fields (accepted and sats_paid) through conditional logic.
- 📦 Upgrade Laravel framework, Livewire, and dependencies to ensure compatibility with version `13.1.1`.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Auth\NostrUser;
|
||||
use App\Enums\AssociationStatus;
|
||||
use App\Models\EinundzwanzigPleb;
|
||||
use App\Models\ProjectProposal;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
@@ -48,7 +49,7 @@ it('denies creation for active member without paid membership', function () {
|
||||
|
||||
it('denies creation for passive member without paid membership', function () {
|
||||
$pleb = EinundzwanzigPleb::factory()->create([
|
||||
'association_status' => \App\Enums\AssociationStatus::PASSIVE,
|
||||
'association_status' => AssociationStatus::PASSIVE,
|
||||
]);
|
||||
$nostrUser = new NostrUser($pleb->pubkey);
|
||||
|
||||
@@ -57,7 +58,7 @@ it('denies creation for passive member without paid membership', function () {
|
||||
|
||||
it('allows passive member with paid membership to create project proposals', function () {
|
||||
$pleb = EinundzwanzigPleb::factory()->withPaidCurrentYear()->create([
|
||||
'association_status' => \App\Enums\AssociationStatus::PASSIVE,
|
||||
'association_status' => AssociationStatus::PASSIVE,
|
||||
]);
|
||||
$nostrUser = new NostrUser($pleb->pubkey);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user