CIM71 - Add related users to assest, CIM72 Add related users to accounts

This commit is contained in:
“VeLiTi”
2024-05-06 12:32:47 +02:00
parent 143fb60be5
commit b2601ff32b
14 changed files with 267 additions and 64 deletions

View File

@@ -8,11 +8,16 @@ defined(page_security_key) or exit;
include_once './assets/functions.php';
include_once './settings/settings.php';
//SET ORIGIN FOR NAVIGATION
$_SESSION['prev_origin'] = '';
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
$prev_page = ($_SESSION['origin'] == 'equipments') ? $_SESSION['prev_origin_equipment'] : (($_SESSION['origin'] == 'account')? $_SESSION['prev_origin'] :'');
$page = 'communications';
//create backbutton to prev_origin
$back_btn_orgin = ($prev_page != '')? '<a href="'.$prev_page.'" class="btn alt mar-right-2">'.$button_back.'</a>':'';
//Check if allowed
if (isAllowed('communications',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
header('location: index.php');
exit;
}
@@ -64,6 +69,7 @@ $view = '
<p>'.$communication_p.'</p>
</div>
</div>
'.$back_btn_orgin.'
</div>';
if (isset($success_msg)){