File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -390,7 +390,8 @@ public static function checkExistingCategory($params)
390390 */
391391 public function getTabNameForItem (CommonGLPI $ item , $ withtemplate = 0 )
392392 {
393- if ($ item ->getType () == \Ticket::class) {
393+ if ($ item ->getType () == \Ticket::class
394+ && $ _SESSION ['glpiactiveprofile ' ]['interface ' ] == 'central ' ) {
394395 return self ::createTabEntry (__ ("Transfer Ticket Entity " , "transferticketentity " ));
395396 }
396397 return '' ;
@@ -407,7 +408,8 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
407408 */
408409 public static function displayTabContentForItem (CommonGLPI $ item , $ tabnum = 1 , $ withtemplate = 0 )
409410 {
410- if ($ item ->getType () == \Ticket::class) {
411+ if ($ item ->getType () == \Ticket::class
412+ && $ _SESSION ['glpiactiveprofile ' ]['interface ' ] == 'central ' ) {
411413 $ ticket = new self ();
412414 $ ticket ->showFormMcv ($ item );
413415 }
You can’t perform that action at this time.
0 commit comments