CIM71 - Add related users to assest, CIM72 Add related users to accounts
This commit is contained in:
@@ -9,8 +9,16 @@ if (debug && debug_id == $_SESSION['id']){
|
||||
include_once './assets/functions.php';
|
||||
include_once './settings/settings.php';
|
||||
|
||||
|
||||
//SET PAGE ORIGIN FOR NAVIGATION AND SECURITY
|
||||
$prev_page = ($_SESSION['origin'] == 'equipments') ? $_SESSION['prev_origin_equipment'] : (($_SESSION['origin'] == 'account')? $_SESSION['prev_origin'] :'');
|
||||
$page = 'contracts';
|
||||
|
||||
//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('contracts',$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
if (isAllowed($page,$_SESSION['profile'],$_SESSION['permission'],'R') === 0){
|
||||
header('location: index.php');
|
||||
exit;
|
||||
}
|
||||
@@ -58,6 +66,7 @@ $view = '
|
||||
<p>'.$contract_p .'</p>
|
||||
</div>
|
||||
</div>
|
||||
'.$back_btn_orgin.'
|
||||
</div>';
|
||||
|
||||
if (isset($success_msg)){
|
||||
|
||||
Reference in New Issue
Block a user