We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b618908 commit 17ee28fCopy full SHA for 17ee28f
1 file changed
inc/profileright.class.php
@@ -63,7 +63,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0)
63
*/
64
public static function displayTabContentForItem(CommonGLPI $item, $tabnum = 1, $withtemplate = 0)
65
{
66
- if ($item instanceof self && Session::haveRight('profile', READ)) {
+ if ($item instanceof Profile && Session::haveRight('profile', READ)) {
67
$profileright = new self();
68
$profileright->showForm($item->fields['id']);
69
}
0 commit comments