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:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user