Skip to content

Commit

Permalink
Merge pull request #55 from wanderlust-group-project-1/nirmal
Browse files Browse the repository at this point in the history
Nirmal
  • Loading branch information
nsavinda authored Oct 31, 2023
2 parents 8e531a8 + 67ee282 commit d3b759e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/middlewares/AuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function getUser(): array {

public static function run_middleware(string $controller, string $method): mixed {
$authRequired = [
'Home' => ['index', 'method2'],
// 'Home' => ['index', 'method2'],
'Controller2' => ['method3'],
'Customer' => ['index', 'edit', 'update'],
'Profile' => ['index', 'edit', 'update'],
Expand Down
6 changes: 3 additions & 3 deletions app/views/components/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<li class="nav-menu-item"><a href="#">Tips & Knowhows</a></li>
<li class="nav-menu-item"><a href="#">Complaints</a></li>
</ul>

<?php if (isset($_SESSION['USER']) && $_SESSION['USER']->role != 'admin') {
<!-- check role avalable or not -->
<?php if (isset($_SESSION['USER']) && is_object($_SESSION['USER']) && $_SESSION['USER']->role != 'admin') {
$user = $_SESSION['USER']; ?>


Expand All @@ -31,7 +31,7 @@



<?php } else if (isset($_SESSION['USER']) && $_SESSION['USER']->role == 'admin') {
<?php } else if (isset($_SESSION['USER']) && is_object($_SESSION['USER']) && $_SESSION['USER']->role == 'admin') {
$admin = $_SESSION['USER']; ?>

<!-- profile avatar with dropdown -->
Expand Down
2 changes: 1 addition & 1 deletion public/assets/css/admin-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.sidebar {
width: 250px;
height: 100vh;
background-color: #eb8484; /* Off-white background color */
background-color: #947f7f; /* Off-white background color */
color: #4C5039; /* Theme color */
position: fixed;
left: 0;
Expand Down
8 changes: 4 additions & 4 deletions public/assets/css/signUp.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.login-container .header{
/* .login-container .header{
width: 100%;
text-align: center;
}
Expand All @@ -7,7 +7,7 @@
font-family:Verdana, Geneva, Tahoma, sans-serif;
color: #5d6149;
font-size: 50px;
}
} */

.login-container .login-form{
background-color: #F4F4F4;
Expand All @@ -28,10 +28,10 @@
color: #6c7058;
}

.login-container .login-form p{
/* .login-container .login-form p{
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
font-style:inherit;
font-size:x-small;
transform: translateY(-25px);
color: #6c7058;
}
} */

0 comments on commit d3b759e

Please sign in to comment.