Skip to content

Commit 53505aa

Browse files
author
Kristan Kenney
committed
Make search results read only if POLICY_SYSTEM_PROTECTED_ADMIN=yes
1 parent 9c23704 commit 53505aa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/templates/admin/list_search.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@
121121
}
122122
?>
123123
<b>
124-
<a href="<?php echo $edit_lnk; ?>"><?=$value['RESULT']?></a>
124+
<? if (($_SESSION['userContext'] === 'admin') && ($_SESSION['user'] !== 'admin') && ($value['USER'] === 'admin') && ($_SESSION['POLICY_SYSTEM_PROTECTED_ADMIN'] === 'yes')) {?>
125+
<?=$value['RESULT']?>
126+
<?} else {?>
127+
<a href="<?php echo $edit_lnk; ?>"><?=$value['RESULT']?></a>
128+
<?}?>
125129
</b>
126130
</div>
127131
<div class="clearfix l-unit__stat-col--left text-right compact-3">

0 commit comments

Comments
 (0)