Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/controllers/AuthController.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,11 @@ public function meAction()
$this->_json(['result' => $identity ? 1 : 0, 'data' => $identity]);
}

/** Role-appropriate landing after auth: admin back office for admin+, else public home. */
/** Role-appropriate landing after auth: admin back office for admin+, else the "My Account" dashboard. */
protected function _roleHome($identity)
{
$role = ($identity && isset($identity->role)) ? $identity->role : '';
return in_array($role, self::ADMIN_ROLES, true) ? '/admin' : '/';
return in_array($role, self::ADMIN_ROLES, true) ? '/admin' : '/account';
}

/**
Expand Down
Loading