mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-05 17:16:52 +03:00
Applied styleci patches
This commit is contained in:
parent
eda9e89c55
commit
7d9de23a25
@ -25,7 +25,6 @@ class CheckUserHasPermission
|
|||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected function errorResponse(Request $request)
|
protected function errorResponse(Request $request)
|
||||||
{
|
{
|
||||||
if ($request->wantsJson()) {
|
if ($request->wantsJson()) {
|
||||||
@ -33,6 +32,7 @@ class CheckUserHasPermission
|
|||||||
}
|
}
|
||||||
|
|
||||||
session()->flash('error', trans('errors.permission'));
|
session()->flash('error', trans('errors.permission'));
|
||||||
|
|
||||||
return redirect('/');
|
return redirect('/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -353,7 +353,7 @@ class ExportTest extends TestCase
|
|||||||
|
|
||||||
foreach ($entities as $entity) {
|
foreach ($entities as $entity) {
|
||||||
$resp = $this->get($entity->getUrl());
|
$resp = $this->get($entity->getUrl());
|
||||||
$resp->assertSee("/export/pdf");
|
$resp->assertSee('/export/pdf');
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @var Role $role */
|
/** @var Role $role */
|
||||||
@ -361,8 +361,8 @@ class ExportTest extends TestCase
|
|||||||
|
|
||||||
foreach ($entities as $entity) {
|
foreach ($entities as $entity) {
|
||||||
$resp = $this->get($entity->getUrl());
|
$resp = $this->get($entity->getUrl());
|
||||||
$resp->assertDontSee("/export/pdf");
|
$resp->assertDontSee('/export/pdf');
|
||||||
$resp = $this->get($entity->getUrl("/export/pdf"));
|
$resp = $this->get($entity->getUrl('/export/pdf'));
|
||||||
$this->assertPermissionError($resp);
|
$this->assertPermissionError($resp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user