feat: Restrict ledger creation exclusively to dynamic owners and fix route matching conflicts
This commit is contained in:
@@ -14,7 +14,7 @@ class StoreLedgerRequest extends FormRequest
|
||||
{
|
||||
$dynamic = $this->route('dynamic');
|
||||
|
||||
return $dynamic && $this->user()->can('view', $dynamic);
|
||||
return $dynamic && $this->user()->can('update', $dynamic);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user