Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianSkierniewski committed Dec 26, 2016
1 parent 7487d54 commit 25c1d4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/Http/Controllers/AccountController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public function __construct(Register $userMenu)
public function account()
{
/**@TODO we need proper user menu method */
return view('account.index', ['menu' => $this->userMenu->getMenu(), 'user' => auth()->user()]);
return view('account.index', ['menu' => $this->userMenu->getMenu()]);
}

public function edit()
{
return view('account.edit', ['menu' => $this->userMenu->getMenu(), 'user' => auth()->user()]);
return view('account.edit', ['menu' => $this->userMenu->getMenu()]);
}

public function welcome(Request $request)
Expand All @@ -48,6 +48,6 @@ public function welcome(Request $request)

public function oauth()
{
return view('account.oauth', ['menu' => $this->userMenu->getMenu(), 'user' => auth()->user()]);
return view('account.oauth', ['menu' => $this->userMenu->getMenu()]);
}
}
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function boot()
function ($view) {
$data = [];
$user = auth()->user();
if ($user) {
if (!$user->isGuest()) {
$data = [
"id" => $user["id"],
"username" => $user->getPresenter()->displayName(),
Expand Down

0 comments on commit 25c1d4d

Please sign in to comment.