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
@@ -25,10 +25,11 @@ class UserDetail extends Controller
public function getDetail(User $user = null)
{
// when no user specified, lets assume we want to edit "me"
if (!$user->exists()) {
$id = Auth::user();
if (!$user->exists) {
$user = Auth::user();
}
$actions = $this->log->getUserActions($user->id, 10);
$roles = UserRoles::getWithTranslations();
$states = UserStates::getWithTranslations();