commit
65e6dd3cfc
|
@ -227,7 +227,9 @@ class ServerController extends Controller
|
|||
/** Show Server Settings */
|
||||
public function show(Server $server)
|
||||
{
|
||||
if($server->user_id != Auth::user()->id) return redirect()->route('servers.index');
|
||||
|
||||
|
||||
if($server->user_id != Auth::user()->id){ return back()->with('error', __('´This is not your Server!'));}
|
||||
$serverAttributes = Pterodactyl::getServerAttributes($server->pterodactyl_id);
|
||||
$serverRelationships = $serverAttributes['relationships'];
|
||||
$serverLocationAttributes = $serverRelationships['location']['attributes'];
|
||||
|
|
|
@ -46,6 +46,7 @@ class RouteServiceProvider extends ServiceProvider
|
|||
Route::middleware('web')
|
||||
->namespace($this->namespace)
|
||||
->group(base_path('routes/web.php'));
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -59,11 +60,8 @@ class RouteServiceProvider extends ServiceProvider
|
|||
RateLimiter::for('api', function (Request $request) {
|
||||
return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip());
|
||||
});
|
||||
RateLimiter::for('ticket-new', function (Request $request) {
|
||||
return Limit::perMinute(3)->by(optional($request->user())->id ?: $request->ip());
|
||||
});
|
||||
RateLimiter::for('ticket-reply', function (Request $request) {
|
||||
return Limit::perMinute(4)->by(optional($request->user())->id ?: $request->ip());
|
||||
RateLimiter::for('web', function (Request $request) {
|
||||
return Limit::perMinute(15)->by(optional($request->user())->id ?: $request->ip());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,6 +42,7 @@ use App\Classes\Settings\System;
|
|||
|
|
||||
*/
|
||||
|
||||
|
||||
Route::middleware('guest')->get('/', function () {
|
||||
return redirect('login');
|
||||
})->name('welcome');
|
||||
|
|
Loading…
Reference in a new issue