mirror of
https://github.com/itflow-org/itflow
synced 2026-05-05 18:57:47 +00:00
Enforce Credential Permissions on contact, asset details both full page and modals
This commit is contained in:
@@ -495,7 +495,7 @@ ob_start();
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($credential_count) { ?>
|
||||
<?php if (lookupUserPermission('module_credential') && ($credential_count)) { ?>
|
||||
<div class="tab-pane fade" id="pills-asset-credentials">
|
||||
<div class="table-responsive-sm-sm">
|
||||
<table class="table table-sm table-striped table-borderless table-hover">
|
||||
|
||||
@@ -334,7 +334,8 @@ ob_start();
|
||||
</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($credential_count) { ?>
|
||||
<?php
|
||||
if (lookupUserPermission('module_credential') && ($credential_count)) { ?>
|
||||
<a class="nav-link <?= ($first_tab === "credentials") ? "active" : "" ?>"
|
||||
data-toggle="pill"
|
||||
href="#pills-contact-credentials<?= $contact_id ?>"
|
||||
@@ -519,7 +520,7 @@ ob_start();
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($credential_count) { ?>
|
||||
<?php if (lookupUserPermission('module_credential') && ($credential_count)) { ?>
|
||||
<div class="tab-pane fade <?= ($first_tab === "credentials") ? "show active" : "" ?>" id="pills-contact-credentials<?= $contact_id ?>">
|
||||
<div class="table-responsive-sm">
|
||||
<table class="table table-striped table-borderless table-hover table-sm dataTables" style="width:100%">
|
||||
@@ -664,7 +665,9 @@ ob_start();
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
} // End Cred Enforcement
|
||||
?>
|
||||
|
||||
<?php if ($recurring_ticket_count) { ?>
|
||||
<div class="tab-pane fade <?= ($first_tab === "recurring") ? "show active" : "" ?>" id="pills-contact-recurring-tickets<?= $contact_id ?>">
|
||||
|
||||
Reference in New Issue
Block a user