Properly consider new role in templates.

This commit is contained in:
Jens Luedicke
2025-07-03 01:53:32 +02:00
parent 2a62dcdcf3
commit 1145e1a517
3 changed files with 6 additions and 6 deletions

View File

@@ -11,7 +11,7 @@
<h3>Company Work Policies <span class="read-only">(Read-only)</span></h3>
<p class="section-description">
These policies are set by your administrator and apply to all employees.
{% if g.user.role == Role.ADMIN %}
{% if g.user.role == Role.ADMIN or g.user.role == Role.SYSTEM_ADMIN %}
<a href="{{ url_for('admin_work_policies') }}">Click here to modify these settings</a>.
{% endif %}
</p>