1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-16 00:00:03 +01:00

Merge branch 'master' into feature-whitelabel

This commit is contained in:
irismarie 2021-03-16 11:41:13 +01:00
commit 604e603384

View file

@ -39,9 +39,10 @@ class SidebarMenu extends React.Component {
static calculateState(prevState, props) {
let config = LoginStore.getState().config;
let externalauth = _.get(config, ['authentication', 'external', 'enabled']);
let logout_url = _.get(config, ['authentication', 'logout_url']);
if (logout_url) {
if (externalauth && logout_url) {
return {
externalAuth: true,
logoutLink: logout_url,