Skip to content

Commit de5ab0e

Browse files
committed
Refactor punishment and audit to remove profile scope.
1 parent 21ee43b commit de5ab0e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

views/modules/profile/profile.ejs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
<li class="nav-item" role="presentation">
2525
<a class="nav-link active" id="about-tab" data-bs-toggle="tab" href="#about" role="tab" aria-controls="about" aria-selected="true">About Me</a>
2626
</li>
27-
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.punishments')) { %>
27+
<% if (contextPermissions && contextPermissions.includes('zander.web.punishments')) { %>
2828
<li class="nav-item" role="presentation">
2929
<a class="nav-link" id="punishments-tab" data-bs-toggle="tab" href="#punishments" role="tab" aria-controls="punishments" aria-selected="false">Punishments <i class="fa-solid fa-shield" style="color: red;"></i></a>
3030
</li>
3131
<% } %>
32-
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.audit')) { %>
32+
<% if (contextPermissions && contextPermissions.includes('zander.web.audit')) { %>
3333
<li class="nav-item" role="presentation">
3434
<a class="nav-link" id="audit-tab" data-bs-toggle="tab" href="#audit" role="tab" aria-controls="audit" aria-selected="false">Audit <i class="fa-solid fa-shield" style="color: red;"></i></a>
3535
</li>
@@ -56,13 +56,13 @@
5656
<% } %>
5757
5858
</div>
59-
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.punishments')) { %>
59+
<% if (contextPermissions && contextPermissions.includes('zander.web.punishments')) { %>
6060
<div class="tab-pane fade mt-2" id="punishments" role="tabpanel" aria-labelledby="punishments-tab">
6161
<!-- Punishments content goes here -->
6262
<div class="alert alert-warning" role="alert">This punishment feature is in development, coming soon!</div>
6363
</div>
6464
<% } %>
65-
<% if (contextPermissions && contextPermissions.includes('zander.web.profile.audit')) { %>
65+
<% if (contextPermissions && contextPermissions.includes('zander.web.audit')) { %>
6666
<div class="tab-pane fade mt-2" id="audit" role="tabpanel" aria-labelledby="audit-tab">
6767
<h3>Minecraft</h3>
6868
<table class="table">

0 commit comments

Comments
 (0)