Refactor permission checks in multiple files to ensure correct access control for communications, users, downloads, and translations. Updated conditions to validate permissions based on user roles.

This commit is contained in:
“VeLiTi”
2026-01-28 14:38:08 +01:00
parent 9e5f5581be
commit 0b090699b8
6 changed files with 8 additions and 8 deletions

View File

@@ -135,7 +135,7 @@ $view .= '
';
//SHOW DOWNLOAD TO EXCELL OPTION ONLY TO ADMIN USERS
if (isAllowed('report_healthindex',$_SESSION['authorization']['permissions'],$_SESSION['authorization']['permission'],'CRU') === 0){
if (isAllowed('report_healthindex',$_SESSION['authorization']['permissions'],$_SESSION['authorization']['permission'],'CRU') === 1){
$view .='<div class="filters">
<a href="index.php?page=report_healthindex&download="><i class="fa-solid fa-download"></i></a>
</div>';