Credentials: Enforce Credential Perm and client perm on credient edit / view modals

This commit is contained in:
johnnyq
2026-05-04 15:37:02 -04:00
parent a7c4136d60
commit 8094e6e761
2 changed files with 9 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
require_once '../../../includes/modal_header.php';
enforceUserPermission('module_credential', 2);
$credential_id = intval($_GET['id']);
$sql = mysqli_query($mysqli, "SELECT * FROM credentials WHERE credential_id = $credential_id LIMIT 1");
@@ -32,6 +34,8 @@ while ($row = mysqli_fetch_assoc($sql_credential_tags)) {
$credential_tag_id_array[] = $credential_tag_id;
}
enforceClientAccess();
// Generate the HTML form content using output buffering.
ob_start();
?>