Skip to content

Commit 98b6276

Browse files
committed
Allow resource owners to edit their resources
1 parent 54414b1 commit 98b6276

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎resources/js/pages/Resource.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,9 @@ onUnmounted(() => {
523523
</h1>
524524
</div>
525525

526-
<!-- Admin Edit Button -->
526+
<!-- Edit Button (Owner / Moderator) -->
527527
<button
528-
v-if="can_moderate"
528+
v-if="can_moderate || is_owner"
529529
type="button"
530530
@click="showEditModal = true"
531531
class="inline-flex shrink-0 cursor-pointer items-center gap-1.5 rounded-xl border border-slate-200/90 bg-white px-3 py-1.5 text-xs font-bold text-slate-700 shadow-2xs transition hover:border-indigo-300 hover:bg-indigo-50/50 hover:text-indigo-600 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300 dark:hover:bg-gray-800 dark:hover:text-indigo-400"

0 commit comments

Comments
 (0)