🛠️ fix(association): correct logic for currentPleb check in project

This commit is contained in:
fsociety
2024-10-25 12:17:11 +02:00
parent 2bc5071117
commit fc9d8be985

View File

@@ -182,7 +182,7 @@ $delete = function ($id) {
<div class="flex flex-col sm:flex-row justify-between items-center mt-3 space-y-2 sm:space-y-0"> <div class="flex flex-col sm:flex-row justify-between items-center mt-3 space-y-2 sm:space-y-0">
@if( @if(
($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id) ($currentPleb && $currentPleb->id === $project->einundzwanzig_pleb_id)
|| ($currentPleb && in_array(config('einundzwanzig.config.current_board'), $currentPleb->npub, true)) || ($currentPleb && in_array($currentPleb->npub, config('einundzwanzig.config.current_board'), true))
) )
<x-button <x-button
icon="trash" icon="trash"