FIX: fix minor bug in user management

This commit is contained in:
Michal Kváček
2017-08-02 13:52:19 +02:00
parent a4c020daa0
commit 3d73bffa6e
5 changed files with 8 additions and 7 deletions
@@ -39,7 +39,7 @@ class EditUser extends Controller
public function getEditUser(User $user = null)
{
// when no user specified, lets assume we want to edit "me"
if (!$user->exists()) {
if (!$user->exists) {
$user = Auth::user();
}