FIX: fix minor bug in user management
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user