From ad25ed6792c209a702c6121007c5d5391fddd028 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 15 May 2023 06:15:09 -0600 Subject: [PATCH 1/2] Update UserCreate command, fix is_admin flag --- app/Console/Commands/UserCreate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/UserCreate.php b/app/Console/Commands/UserCreate.php index 00616af65..37a509461 100644 --- a/app/Console/Commands/UserCreate.php +++ b/app/Console/Commands/UserCreate.php @@ -52,7 +52,7 @@ class UserCreate extends Command $user->name = $o['name']; $user->email = $o['email']; $user->password = bcrypt($o['password']); - $user->is_admin = (bool) $o['is_admin']; + $user->is_admin = $o['is_admin'] == 'true'; $user->email_verified_at = $o['confirm_email'] ? now() : null; $user->save(); From 127343ccdab2bd1e1c0d77f95353b30b587fb711 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 15 May 2023 06:15:42 -0600 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5902ec8f..9e9cf56dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ - Update AutoSpam Bouncer, generate notification on positive detections ([d5f63f8a](https://github.com/pixelfed/pixelfed/commit/d5f63f8a)) - Update admin autospam apis, remove autospam warning notifications when appropriate ([588ca653](https://github.com/pixelfed/pixelfed/commit/588ca653)) - Update StatusEntityLexer, stop saving entities ([a91a5e48](https://github.com/pixelfed/pixelfed/commit/a91a5e48)) +- Update UserCreate command, fix is_admin flag ([ad25ed67](https://github.com/pixelfed/pixelfed/commit/ad25ed67)) - ([](https://github.com/pixelfed/pixelfed/commit/)) ## [v0.11.6 (2023-05-03)](https://github.com/pixelfed/pixelfed/compare/v0.11.5...v0.11.6)