Added a DISABLE_LOGOUT constant, to allow the logout command to be disabled, for support of external SSO solutions.

This commit is contained in:
Dj Padzensky
2016-02-12 15:56:13 -08:00
parent 77ae92b09b
commit 773bf36733
3 changed files with 17 additions and 7 deletions

View File

@@ -84,13 +84,15 @@
<i class="fa fa-life-ring fa-fw"></i>
<?= $this->url->link(t('Documentation'), 'doc', 'show') ?>
</li>
<li>
<i class="fa fa-sign-out fa-fw"></i>
<?= $this->url->link(t('Logout'), 'auth', 'logout') ?>
</li>
<?php if (! DISABLE_LOGOUT): ?>
<li>
<i class="fa fa-sign-out fa-fw"></i>
<?= $this->url->link(t('Logout'), 'auth', 'logout') ?>
</li>
<?php endif ?>
</ul>
</div>
</li>
</ul>
</nav>
</header>
</header>