mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-01-16 18:04:34 -05:00
Fix broken links in userclass/privilege tools
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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&id=new" class="brackets">Create a new userclass</a>
|
||||
<a href="tools.php?action=userclass&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&id={{ c.ID }}">{{ c.Name }}</a>
|
||||
<a href="tools.php?action=privilege-edit&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&id={{ c.ID }}">{% if c.ID in p.can %}✅{% else %}·{% endif %}</a></td>
|
||||
<a href="tools.php?action=privilege-edit&id={{ c.ID }}">{% if c.ID in p.can %}✅{% else %}·{% endif %}</a></td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user