Merge branch 'main' of https://github.com/claus75a/reportify_new
This commit is contained in:
commit
52aa201299
@ -106,7 +106,20 @@ class LoginController extends Controller
|
||||
return redirect()->to($request->get('to'));
|
||||
}
|
||||
|
||||
return redirect()->intended();
|
||||
// return redirect()->intended();
|
||||
|
||||
// redirection based on user profile: User, Admin, Superuser, owner
|
||||
if ($user->hasRole('Template')) {
|
||||
return redirect()->to("userarea/index.php"); }
|
||||
if ($user->hasRole('Admin')) {
|
||||
return redirect()->to("userarea/index.php"); }
|
||||
if ($user->hasRole('User')) {
|
||||
return redirect()->to("userarea/index.php"); }
|
||||
if ($user->hasRole('Superuser')) {
|
||||
return redirect()->to("userarea/index.php"); }
|
||||
if ($user->hasRole('Quality')) {
|
||||
return redirect()->to("userarea/index.php"); }
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -113,7 +113,7 @@
|
||||
<h5 class="header-title pb-3 mt-0">Importify: <?php echo $dashboard; ?></h5>
|
||||
<a class="btn btn-primary" href="insert-importifytemplate.php" role="button">Insert new template</a>
|
||||
<a class="btn btn-success" href="rsl-category.php" role="button">Import File</a>
|
||||
<a href=""><button type="button" class="btn btn-info w-md waves-effect waves-light">Hystory Import</button></a>
|
||||
<a href="archiveimport.php"><button type="button" class="btn btn-info w-md waves-effect waves-light">Hystory Import</button></a>
|
||||
<a href="importifydashboard.php"><button type="button" class="btn btn-pink w-md waves-effect waves-light">Importify Dasboard</button></a>
|
||||
<a href="dashboard.php"><button type="button" class="btn btn-danger w-md waves-effect waves-light">Reportify Dasboard</button></a>
|
||||
|
||||
@ -154,6 +154,12 @@
|
||||
|
||||
|
||||
<td>
|
||||
<a href="runimport.php?idimporttemplates=<?php echo ($templateimportify->getColumnVal("idimporttemplates")); ?>">
|
||||
<button type="button" class="btn btn-danger waves-effect waves-light" data-toggle="tooltip" title="Run Import">
|
||||
<i class="fas fa-play font-size-16 align-middle"></i>
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="columnlink.php?idimporttemplates=<?php echo ($templateimportify->getColumnVal("idimporttemplates")); ?>">
|
||||
<button type="button" class="btn btn-info waves-effect waves-light" data-toggle="tooltip" title="Associate Columns">
|
||||
<i class="fas fa-project-diagram font-size-16 align-middle"></i>
|
||||
|
||||
@ -123,7 +123,7 @@ $conn->close();
|
||||
<div class="dropdown-item noti-title">
|
||||
<h5>Welcome</h5>
|
||||
</div>
|
||||
<a class="dropdown-item" href="#"><i class="mdi mdi-account-circle m-r-5 text-muted"></i> <?php echo $userprofile; ?></a>
|
||||
<a class="dropdown-item" href="<?php echo BASE_URL; ?>profile"><i class="mdi mdi-account-circle m-r-5 text-muted"></i> <?php echo $userprofile; ?></a>
|
||||
<a class="dropdown-item" href="#"><i class="mdi mdi-wallet m-r-5 text-muted"></i> <?php echo $mycompany; ?></a>
|
||||
|
||||
<div class="dropdown-divider"></div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user