Skip to content

Commit

Permalink
Merge pull request #2579 from phili67/phili67-header-minimal-jwt
Browse files Browse the repository at this point in the history
personcustomEditor jwt res
  • Loading branch information
phili67 authored Apr 1, 2024
2 parents 774bf4f + af4040b commit 45b5d09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/Include/Header-Minimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
require_once 'Header-Security.php';

use EcclesiaCRM\dto\SystemURLs;
use EcclesiaCRM\SessionUser;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Expand All @@ -26,6 +27,7 @@
<script nonce="<?= SystemURLs::getCSPNonce() ?>">
window.CRM = {
root: "<?= SystemURLs::getRootPath() ?>",
jwtToken: '<?= SessionUser::getUser()->getJwtTokenForApi() ?>'
};
</script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/v2/templates/people/personCustomEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function GetSecurityList($aSecGrp, $fld_name, $currOpt = 'bAll')
}
} elseif ($aTypeFields[$row] == 12) {
?>
<a href="javascript:void(0)" class="btn btn-success" onClick="Newwin=window.open('v2/system/option/manager/custom/<?= $aSpecialFields[$row]?>','Newwin','toolbar=no,status=no,width=400,height=500')"><?= _('Edit List Options') ?></a>
<a href="javascript:void(0)" class="btn btn-success" onClick="Newwin=window.open('<?= $sRootPath ?>/v2/system/option/manager/custom/<?= $aSpecialFields[$row]?>','Newwin','toolbar=no,status=no,width=400,height=500')"><?= _('Edit List Options') ?></a>
<?php
} else {
?>
Expand Down

0 comments on commit 45b5d09

Please sign in to comment.