fix: [notice] errors when not logged in removed
parent
fac19e0a3c
commit
3857de8499
|
@ -25,7 +25,7 @@ class UsersNavigation extends BaseNavigation
|
||||||
$bcf = $this->bcf;
|
$bcf = $this->bcf;
|
||||||
$request = $this->request;
|
$request = $this->request;
|
||||||
$passedData = $this->request->getParam('pass');
|
$passedData = $this->request->getParam('pass');
|
||||||
$currentUserId = $this->currentUserId;
|
$currentUserId = empty($this->currentUserId) ? null : $this->currentUserId;
|
||||||
$currentUser = $this->currentUser;
|
$currentUser = $this->currentUser;
|
||||||
$this->bcf->addLink('Users', 'view', 'UserSettings', 'index', function ($config) use ($bcf, $request, $passedData, $currentUser) {
|
$this->bcf->addLink('Users', 'view', 'UserSettings', 'index', function ($config) use ($bcf, $request, $passedData, $currentUser) {
|
||||||
if (!empty($passedData[0])) {
|
if (!empty($passedData[0])) {
|
||||||
|
@ -75,6 +75,7 @@ class UsersNavigation extends BaseNavigation
|
||||||
!empty(Configure::read('keycloak.enabled')) &&
|
!empty(Configure::read('keycloak.enabled')) &&
|
||||||
!empty(Configure::read('keycloak.provider.baseUrl')) &&
|
!empty(Configure::read('keycloak.provider.baseUrl')) &&
|
||||||
!empty(Configure::read('keycloak.provider.realm')) &&
|
!empty(Configure::read('keycloak.provider.realm')) &&
|
||||||
|
!empty($passedData[0]) &&
|
||||||
$currentUserId == $passedData[0]
|
$currentUserId == $passedData[0]
|
||||||
) {
|
) {
|
||||||
$url = sprintf(
|
$url = sprintf(
|
||||||
|
|
Loading…
Reference in New Issue