Enforce Credential Permissions on contact, asset details both full page and modals

This commit is contained in:
johnnyq
2026-05-04 15:30:33 -04:00
parent 67f9f9ec76
commit a7c4136d60
5 changed files with 17 additions and 9 deletions

View File

@@ -349,10 +349,7 @@ $sql_asset_retired = mysqli_query(
<?php } ?>
<?php
// Credential Permission check
if (lookupUserPermission('module_credential')) {
if (mysqli_num_rows($sql_favorite_credentials) > 0) { ?>
<?php if ((mysqli_num_rows($sql_favorite_credentials) > 0) && (lookupUserPermission('module_credential'))) { ?>
<div class="col-md-4">
@@ -414,7 +411,7 @@ $sql_asset_retired = mysqli_query(
</div>
<?php } } ?>
<?php } ?>
<?php if (mysqli_num_rows($sql_shared_items) > 0) { ?>