Fix broken links in userclass/privilege tools

This commit is contained in:
itismadness
2025-07-26 16:00:58 +00:00
committed by Spine
parent 0b8a659cd5
commit 2b8cb0ad6e
2 changed files with 5 additions and 5 deletions

View File

@@ -40,7 +40,7 @@ if (isset($_REQUEST['submit'])) {
if ($edit) {
$privilege = $privMan->findById((int)$_REQUEST['id']);
if (is_null($privilege)) {
header("Location: tools.php?action=permissions");
header("Location: tools.php?action=userclass");
exit;
}
if (empty($_REQUEST['secondary']) == $privilege->isSecondary() && $privilege->userTotal() > 0) {
@@ -80,7 +80,7 @@ if (isset($_REQUEST['submit'])) {
$badge,
$displayStaff
);
header("Location: tools.php?action=permissions");
header("Location: tools.php?action=userclass");
exit;
}
$privilege->setField('Badge', $badge)

View File

@@ -6,7 +6,7 @@
<a href="tools.php?action=userclass" class="brackets">Userclass list</a>
<a href="tools.php?action=staff_groups" class="brackets">Staff Groups</a>
<br />
<a href="tools.php?action=permissions&amp;id=new" class="brackets">Create a new userclass</a>
<a href="tools.php?action=userclass&amp;id=new" class="brackets">Create a new userclass</a>
</div>
</div>
<h2>Privileges Matrix</h2>
@@ -15,7 +15,7 @@
<td rowspan="2" style="vertical-align: bottom">Primary Class ★<br /><br />Privilege</td>
{% for c in class_list %}
<td style="padding: 0;"><div class="rot90-container"><div class="rot90">
<a href="tools.php?action=permissions&amp;id={{ c.ID }}">{{ c.Name }}</a>
<a href="tools.php?action=privilege-edit&amp;id={{ c.ID }}">{{ c.Name }}</a>
</div></div></td>
{% endfor %}
</tr>
@@ -29,7 +29,7 @@
<td{{ p.orphan ? ' title="This is an orphaned privilege" style="color: orangered; font-weight: bold;"' : '' }} title="{{ p.description }}">{{ p.name }}</td>
{% for c in class_list %}
<td style="text-align: center;" title="{{ c.Name }} {{ c.ID in p.can ? 'can' : 'cannot' }} {{ p.description }}">
<a href="tools.php?action=permissions&amp;id={{ c.ID }}">{% if c.ID in p.can %}{% else %}·{% endif %}</a></td>
<a href="tools.php?action=privilege-edit&amp;id={{ c.ID }}">{% if c.ID in p.can %}{% else %}·{% endif %}</a></td>
{% endfor %}
</tr>
{% endfor %}