Refactor permission checks across multiple files to utilize isAllowed function for better access control management. Updated hierarchy level checks in account, contracts, equipments, partners, users, and API endpoints to streamline permission validation. Enhanced download options visibility based on user permissions in various reports and management pages. Improved modal behavior and auto-installation process in software tool after payment success. Added new helper functions for building dynamic where clauses based on user hierarchy levels.
This commit is contained in:
@@ -192,7 +192,7 @@ $view .= '
|
||||
<a class="btn alt" href="index.php?page=equipments">X</a>';
|
||||
|
||||
//SHOW DOWNLOAD TO EXCELL OPTION ONLY TO ADMIN USERS
|
||||
if ($_SESSION['authorization']['permission'] == 3 || $_SESSION['authorization']['permission'] == 4){
|
||||
if (isAllowed('equipments',$_SESSION['authorization']['permissions'],$_SESSION['authorization']['permission'],'CRU') === 0){
|
||||
$view .= '<a class="btn alt" href="index.php?page=equipments&download=">
|
||||
<i class="fa-solid fa-download"></i>
|
||||
</a>';
|
||||
|
||||
Reference in New Issue
Block a user