Upgrade to 3.7.1

This commit is contained in:
Bastian Allgeier
2022-07-12 13:33:21 +02:00
parent 7931eb5e47
commit 1ad1eaf387
377 changed files with 63981 additions and 63824 deletions

View File

@@ -14,34 +14,34 @@ namespace Kirby\Cms;
*/
class UserBlueprint extends Blueprint
{
/**
* UserBlueprint constructor.
*
* @param array $props
* @throws \Kirby\Exception\InvalidArgumentException
*/
public function __construct(array $props)
{
// normalize and translate the description
$props['description'] = $this->i18n($props['description'] ?? null);
/**
* UserBlueprint constructor.
*
* @param array $props
* @throws \Kirby\Exception\InvalidArgumentException
*/
public function __construct(array $props)
{
// normalize and translate the description
$props['description'] = $this->i18n($props['description'] ?? null);
// register the other props
parent::__construct($props);
// register the other props
parent::__construct($props);
// normalize all available page options
$this->props['options'] = $this->normalizeOptions(
$this->props['options'] ?? true,
// defaults
[
'create' => null,
'changeEmail' => null,
'changeLanguage' => null,
'changeName' => null,
'changePassword' => null,
'changeRole' => null,
'delete' => null,
'update' => null,
]
);
}
// normalize all available page options
$this->props['options'] = $this->normalizeOptions(
$this->props['options'] ?? true,
// defaults
[
'create' => null,
'changeEmail' => null,
'changeLanguage' => null,
'changeName' => null,
'changePassword' => null,
'changeRole' => null,
'delete' => null,
'update' => null,
]
);
}
}