Verified Commit 19a83c46 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:tractor: fix(samba) Adapt samba to new SystemsAttribute code

issue #5937
Showing with 4 additions and 14 deletions
+4 -14
......@@ -127,20 +127,10 @@ class SambaFlagsAttribute extends FlagsAttribute
class WinstationsAttribute extends SystemsAttribute
{
protected $dialogClass = 'WinstationSelectDialog';
}
class WinstationSelectDialog extends GenericSelectDialog
{
protected $dialogClass = 'winstationSelect';
}
class winstationSelect extends simpleSelectManagement
{
protected $objectTypes = [
'winstation'
];
protected $autoFilterAttributes = ['dn', 'cn', 'uid', 'description'];
function __construct (string $label, string $description, string $ldapName, bool $required, array $objectTypes = ['workstation'], array $defaultValue = [], string $store_attr = 'cn', string $display_attr = 'cn', string $acl = '')
  • :arrow_down_small: Remove this method "__construct" to simply inherit it. :blue_book:

Please register or sign in to reply
{
parent::__construct($label, $description, $ldapName, $required, $objectTypes, $defaultValue, $store_attr, $display_attr, $acl);
}
}
class sambaAccount extends simplePlugin implements UserTabLockingAction
......
  • SonarQube analysis reported 1 issue

    • :arrow_down_small: 1 minor

    Watch the comments in this conversation to review them.

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