Commit aa09b096 by Manoj

changes

parent 669ba57c
......@@ -77,12 +77,8 @@ class AuthController extends CI_Controller
{
$this->session->unset_userdata('logged_in');
$this->authentication->logout();
// Set redirect protocol
$redirect_protocol = USE_SSL ? 'https' : null;
redirect(site_url(LOGIN_PAGE . '?logout=1', $redirect_protocol));
$this->session->sess_destroy();
redirect(base_url());
}
}
<!--**********************************
Sidebar start
***********************************-->
<?php $authLevel = $this->session->userdata('auth_level');
$userId = $this->session->userdata('user_id');
$checkUser = $this->mcommon->specific_row_value('exam_assigned',array('user_id' => $userId), 'user_id');
?>
<div class="dlabnav">
<div class="dlabnav-scroll">
<ul class="metismenu" id="menu">
......@@ -10,6 +13,7 @@
<span class="nav-text">Dashboard</span>
</a>
</li>
<?php if($authLevel==9) {?>
<li><a class="has-arrow " href="javascript:void(0);" aria-expanded="false">
<i class="material-symbols-outlined">book</i>
......@@ -98,11 +102,16 @@
</a>
</li>
<?php } ?>
<?php if($authLevel==9 || $checkUser!='' ) {?>
<li><a href="<?php echo base_url(); ?>ExamController/viewExam/" aria-expanded="false">
<i class="material-symbols-outlined">filter</i>
<span class="nav-text">Exam</span>
</a>
</li>
<?php } ?>
<!-- <li><a href="<?php echo base_url(); ?>ApplicationController/scoreList/" aria-expanded="false">
<i class="material-symbols-outlined"></i>
......
......@@ -421,6 +421,7 @@
success: function(response) {
$('#assignModal').modal('hide');
// alert('Successfully test assigned');
window.location.href = '<?= base_url("ApplicationController/completedformdetails") ?>';
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment