public function __construct(Access $access) { parent::__construct($access); $filter = $this->access->connection->ldapGroupFilter; $gassoc = $this->access->connection->ldapGroupMemberAssocAttr; if (!empty($filter) && !empty($gassoc)) { $this->enabled = true; } }
/** * @param \OCA\user_ldap\lib\Access $access * @param \OCP\IConfig $ocConfig */ public function __construct(Access $access, IConfig $ocConfig) { parent::__construct($access); $this->ocConfig = $ocConfig; }