Skip to content

Commit

Permalink
fix: extended service catalog
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Oct 9, 2019
1 parent 364659e commit 8d5879b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ function plugin_formcreator_decode($string) {

/**
* Tells if helpdesk replacement is enabled for the current user
*
* @return boolean|integer
*/
function plugin_formcreator_replaceHelpdesk() {
if (isset($_SESSION['glpiactiveprofile']['interface'])
Expand All @@ -298,7 +300,7 @@ function plugin_formcreator_replaceHelpdesk() {
$helpdeskMode = PluginFormcreatorEntityconfig::getUsedConfig('replace_helpdesk', $_SESSION['glpiactive_entity']);
if ($helpdeskMode != '0'
&& $_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
return true;
return $helpdeskMode;
}
}
return false;
Expand Down

0 comments on commit 8d5879b

Please sign in to comment.