Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of an NSAC emergency info role #330

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Made it so that the current members menu option is visible to NSAC role
ThijsEgberts committed Jul 6, 2023
commit 62f98ce8fa8741441dba6c27b9211d0a2ee4987c
8 changes: 5 additions & 3 deletions resources/views/layouts/beheer.blade.php
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
</a>
</li>
@else
@if(\Illuminate\Support\Facades\Auth::user()->hasRole(Config::get('constants.Administrator'),Config::get('constants.Activity_administrator'),Config::get('constants.Content_administrator'),Config::get('constants.Certificate_administrator')))
@if(\Illuminate\Support\Facades\Auth::user()->hasRole(Config::get('constants.Administrator'),Config::get('constants.Activity_administrator'),Config::get('constants.Content_administrator'),Config::get('constants.Certificate_administrator'),Config::get('constants.NSAC_emegency_info_administrator')))
<hr class="my-3">

<li class="nav-item active">
@@ -54,7 +54,7 @@
</a>
</li>
@endif
@if(\Illuminate\Support\Facades\Auth::user()->hasRole(Config::get('constants.Administrator'),Config::get('constants.Certificate_administrator')))
@if(\Illuminate\Support\Facades\Auth::user()->hasRole(Config::get('constants.Administrator'),Config::get('constants.Certificate_administrator'),Config::get('constants.NSAC_emegency_info_administrator')))
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{trans("menu.leden")}}
@@ -66,7 +66,9 @@
<a class="dropdown-item" href="{{ url('users/pending_members') }}">{{trans("user.pending_members")}}</a>
<a class="dropdown-item" href="{{ url('rols') }}">{{trans("menu.rols")}}</a>
@endif
<a class="dropdown-item" href="{{ url('certificates') }}">{{trans("menu.certificate")}}</a>
@if(\Illuminate\Support\Facades\Auth::user()->hasRole(Config::get('constants.Administrator'),Config::get('constants.Certificate_administrator')))
<a class="dropdown-item" href="{{ url('certificates') }}">{{trans("menu.certificate")}}</a>
@endif
</div>
</li>
@endif