Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2023-10-09 07:16:01 +00:00
parent 5f9e3803ad
commit 0b73ac5165
6 changed files with 90 additions and 109 deletions

View File

@@ -263,14 +263,13 @@ class UserController extends Controller
public function getPage($name, Page $page)
{
$page = $page->where('slug' , $name);
$page = $page->where('slug', $name);
if (!Auth::check() || \Auth::user()->role == 'user') {
$page = $page
->where(['status' => 1,'visibility'=>1])
->where(['status' => 1, 'visibility'=>1])
->first();
}
else {
} else {
$page = $page->where('status', 1)->first();
}