Upgrade to 3.2.0
This commit is contained in:
@@ -11,6 +11,12 @@ use Kirby\Toolkit\V;
|
||||
|
||||
/**
|
||||
* Validators for all user actions
|
||||
*
|
||||
* @package Kirby Cms
|
||||
* @author Bastian Allgeier <bastian@getkirby.com>
|
||||
* @link https://getkirby.com
|
||||
* @copyright Bastian Allgeier GmbH
|
||||
* @license https://getkirby.com/license
|
||||
*/
|
||||
class UserRules
|
||||
{
|
||||
@@ -164,7 +170,7 @@ class UserRules
|
||||
|
||||
public static function validId(User $user, string $id): bool
|
||||
{
|
||||
if ($duplicate = $user->kirby()->users()->find($id)) {
|
||||
if ($user->kirby()->users()->find($id)) {
|
||||
throw new DuplicateException('A user with this id exists');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user