Skip to content
Snippets Groups Projects
Unverified Commit 0923266e authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

Add "Pult" access to navbar for specific user roles

Updated the navbar and added a "Pult" link. With this change, only admin users and users with a new role 'IsPultosch' will see the "Pult" link. This was added to provide these specific user groups with a quick access to this feature without cluttering the navbar for rest of the users.
parent 5f358b98
No related branches found
No related tags found
1 merge request!25Add API endpoints and middleware for user and product manipulation
......@@ -15,10 +15,18 @@
<li class="nav-item">
<a class="nav-link" href="/admin">Admin</a>
</li>
<li>
<a class="nav-link" href="pult">Pult</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/topup">Feltöltés</a>
</li>
{{- else }}
{{- if .User.IsPultosch }}
<li class="nav-item">
<a class="nav-link" href="/pult">Pult</a>
</li>
{{- end }}
<li class="nav-item">
<a class="nav-link" href="#" onclick="alert('Keresd a reszort gazdaságist!')">Feltöltés</a>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment