Allow Bban.

@param bool $allow

@return $this|bool
176626
public function allowBban($allow = null)
    {
        if (null !== $allow) {
            $this->allowBban = (bool) $allow;

            return $this;
        }

        return $this->allowBban;
    }
1222384
protected function setAllowed(array $allowed): void
	{
		$locales = $this->orm->locales->findAll();
		foreach ($locales as $locale) {
			/* @var $locale Locale */
			if (in_array($locale->id, $allowed)) {
				$locale->allowed = true;
			} else {
				$locale->allowed = false;
			}
			$this->orm->persist($locale);
		}
		$this->orm->flush();
	}
1144829
protected function addBooleanRule($ruleName, $bool = true)
	{
		if (!is_bool($bool))
		{
			throw new InvalidArgumentException($ruleName . '() expects a boolean');
		}

		$this->items[$ruleName] = $bool;
	}
145344
public function allowOrigin($domain = '*', $replace = false)
    {
        $domain = implode(' ', (array) $domain);

        if ($replace) {
            $this->response = $this->response->withHeader('Access-Control-Allow-Origin', $domain);
        } else {
            $this->response = $this->response->withAddedHeader('Access-Control-Allow-Origin', $domain);
        }

        return $this;
    }
304295
public function allowCredentials($bool = true)
    {
        $this->response = $this->corsHandler->setResponse($this->response)
            ->allowCredentials($bool)
            ->getResponse();

        return $this;
    }
816777
public function addBlankOption(bool $disabled = false) : Select
    {
        $this->addBlank = true;
        if ($disabled) $this->disabled[] = '';
        return $this;
    }
571204
public function allowIp($rule) {
        $this->check_role = 'denyIp';
        $ip = request()->ip();
        if (!is_array($rule)) {
            $rule = explode(',', $rule);
        }
        $result = in_array($ip, $rule);
        $this->checkResult($result);
        return $this;
    }
1053930
public function addRules($allow, $actions, $resources, $condition = null)
    {
        return $this->addRule($allow, $actions, $resources, $condition);
    }
503464
public function disableCreatingCheck(bool $disable = true)
    {
        $this->builder()->getFooter()->disableCreatingCheck($disable);

        return $this;
    }
1155582
public function accept($accept)
    {
        if (is_array($accept)) {
            $accept = implode(',', $accept);
        }

        $this->addAttribute('accept', $accept);

        return $this;
    }
1058456
public function isAllowBulkDelete($allow = null)
    {
        if (null !== $allow) {
            $this->allowBulkDelete = (bool) $allow;
        }

        return $this->allowBulkDelete;
    }
1078731
protected function addRule(FilterRule $rule)
    {
        if ($this->keys === null) {
            $this->filter->addFilterRule($rule);
        }

        if (is_array($this->keys)) {
            foreach ($this->keys as $key) {
                $this->filter->addFilterRule($rule, $key);
            }
        } else {
            $this->filter->addFilterRule($rule, $this->keys);
        }

        return $this;
    }
1174415
public function setAllowedAttributes($allowedAttribs)
    {
        if (!is_array($allowedAttribs)) {
            $allowedAttribs = [$allowedAttribs];
        }

        // Store each attribute as allowed.
        foreach ($allowedAttribs as $attribute) {
            if (is_string($attribute)) {
                // Canonicalize the attribute name.
                $attributeName = strtolower($attribute);
                $this->allowedAttributes[$attributeName] = null;
            }
        }

        return $this;
    }
1013141
public function accepted() {
        $this->check_role = 'accepted';
        $result = in_array($this->value, ['1', 'on', 'yes']);
        $this->checkResult($result);
        return $this;
    }
1324181
public function enableHydration($enable = true)
    {
        $this->_dirty();
        $this->_hydrate = (bool)$enable;

        return $this;
    }
924112
public function setBans($bans)
    {
        foreach ($bans as $key => $dtoData) {
            $this->bans[$key] = new TeamBansDto($dtoData);
        }
    
        return $this;
    }
409312
public function setStrictDynamic(string $directive = '', bool $allow = false): self
    {
        $this->policies[$directive]['strict-dynamic'] = $allow;
        return $this;
    }