You are not logged in.
When profile changed - Profile::cleanProfile() function run.
In this function works next code:
function cleanProfile()
if ($this->fields["interface"] == "helpdesk") {
foreach ($this->fields as $key=>$val) {
if (!in_array($key, self::$common_fields)
&& !in_array($key, self::$helpdesk_rights)) {
unset($this->fields[$key]);
}
}
}
How I can add my plugin rights to helpdesk users?
I can add in plugin init() method next code:
Profile::$helpdesk_rights[] = PluginSomeClass::$rightname;
Is this correct? Or I can use some glpi API method?
Thanks!
Offline