Commit ea18d344 authored by Benoit Mortier's avatar Benoit Mortier
Browse files
Showing with 19 additions and 17 deletions
+19 -17
......@@ -132,15 +132,15 @@ class ogroup extends simplePlugin
var $used_workstations = array();
static $objectTypes = array(
"U" => "user",
"G" => "group",
"A" => "application",
"S" => "server",
"W" => "workstation",
"O" => "winstation",
"T" => "terminal",
"F" => "phone",
"P" => "printer"
'U' => 'user',
'G' => 'group',
'A' => 'application',
'S' => 'server',
'W' => 'workstation',
'O' => 'winstation',
'T' => 'terminal',
'F' => 'phone',
'P' => 'printer'
);
static function plInfo()
......@@ -159,14 +159,16 @@ class ogroup extends simplePlugin
'tabClass' => 'ogrouptabs',
)),
'plForeignKeys' => array(
'member' => array_values(
array_map(
function ($a)
{
return array($a);
},
self::$objectTypes
)
'member' => array(
array('user'),
array('group'),
array('applicationGeneric'),
array('serverGeneric'),
array('workstationGeneric'),
array('winstationGeneric'),
array('terminalGeneric'),
array('phoneGeneric'),
array('printGeneric'),
)
),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment