Skip to content

Commit

Permalink
fix(world): Unhide hidden categories for appropriate staff on Univers…
Browse files Browse the repository at this point in the history
…al Visual Index
  • Loading branch information
SpeedyD authored Mar 14, 2024
1 parent 4716407 commit e2eff7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/views/world/universal_features.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
<p>This is a visual index of all universal traits. Click a trait to view more info on it!</p>

@foreach ($features as $categoryId => $categoryFeatures)
@if (!isset($categories[$categoryId]) || $categories[$categoryId]->is_visible)
@if (!isset($categories[$categoryId]) || (Auth::check() && Auth::user()->hasPower('edit_data')) || $categories[$categoryId]->is_visible)
<div class="card mb-3 inventory-category">
<h5 class="card-header inventory-header">
@if (isset($categories[$categoryId]) && !$categories[$categoryId]->is_visible)
<i class="fas fa-eye-slash mr-1"></i>
@endif
{!! isset($categories[$categoryId]) ? '<a href="' . $categories[$categoryId]->searchUrl . '">' . $categories[$categoryId]->name . '</a>' : 'Miscellaneous' !!}
</h5>
<div class="card-body inventory-body">
Expand Down

0 comments on commit e2eff7c

Please sign in to comment.