Skip to content

Commit bc8477b

Browse files
committed
Middleware for demo user
1 parent 19da9e9 commit bc8477b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/Http/Controllers/LoggedIn/Team/TeamController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function store(StoreNewTeamRequest $request)
5151
$user = Auth::user();
5252
if ($user->id === 2) {
5353
return Inertia::render("Error", [
54-
"customError" => "You cannot switch Company in demo mode.",
54+
"customError" => "Demo mode.",
5555
"status" => 403, // HTTP status code for the response.
5656
]);
5757
}

app/Http/Controllers/Superadmin/SuperadminSwitchTeamController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function update(Request $request)
7575

7676
if ($user->id === 2) {
7777
return Inertia::render("Error", [
78-
"customError" => "You cannot switch Company in demo mode.",
78+
"customError" => "Demo mode.",
7979
"status" => 403, // HTTP status code for the response.
8080
]);
8181
}

0 commit comments

Comments
 (0)