mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
N°1408 - Dashboard Printer friendly page + user edit rights
This commit is contained in:
@@ -1254,7 +1254,7 @@ class AttributeDashboard extends AttributeDefinition
|
||||
static public function ListExpectedParams()
|
||||
{
|
||||
return array_merge(parent::ListExpectedParams(),
|
||||
array("definition_file"));
|
||||
array("definition_file", "is_user_editable"));
|
||||
}
|
||||
|
||||
public function GetDashboard()
|
||||
@@ -1265,6 +1265,11 @@ class AttributeDashboard extends AttributeDefinition
|
||||
return RuntimeDashboard::GetDashboard($sFilePath, $sClass.'__'.$sAttCode);
|
||||
}
|
||||
|
||||
public function IsUserEditable()
|
||||
{
|
||||
return $this->Get('is_user_editable');
|
||||
}
|
||||
|
||||
public function IsWritable()
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user