fix: [UI] Logout fixed

pull/4169/head
iglocska 2019-02-16 18:20:19 +01:00
parent 0a47c3e3be
commit a34d4dcfb2
1 changed files with 3 additions and 3 deletions

View File

@ -360,12 +360,12 @@
array(
'url' => h(Configure::read('Plugin.CustomAuth_custom_logout')),
'text' => __('Log out'),
'requirement' => (!$externalAuthUser && empty(Configure::read('Plugin.CustomAuth_disable_logout')))
'requirement' => (Configure::read('Plugin.CustomAuth_custom_logout') && empty(Configure::read('Plugin.CustomAuth_disable_logout')))
),
array(
'url' => '/users/logout',
'text' => __('Log out2'),
'requirement' => (!empty(Configure::read('Plugin.CustomAuth_custom_logout')))
'text' => __('Log out'),
'requirement' => (!$externalAuthUser && empty(Configure::read('Plugin.CustomAuth_disable_logout')))
)
);
}