Skip to content

Commit a8d385b

Browse files
merge branch v2 (release 2.0.0-beta.28)
2 parents 6e97e9d + db7e96a commit a8d385b

5 files changed

Lines changed: 18 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
# Changelog
22

3-
## [v2.0.0-beta.27](https://github.com/marcantondahmen/automad/commit/3e26371c253034f7ca73d2fa470f1c75c0cb0a76)
3+
## [v2.0.0-beta.28](https://github.com/marcantondahmen/automad/commit/4ff284fe9dd5e38c014dfba0018bac5eac0e91d1)
44

5-
Sun, 12 Apr 2026 20:28:19 +0200
5+
Thu, 30 Apr 2026 10:23:59 +0200
6+
7+
### Bugfixes
8+
9+
- fix public access to the user-collection/create-first-user api route after the first user has been created ([4ff284fe](https://github.com/marcantondahmen/automad/commit/4ff284fe9dd5e38c014dfba0018bac5eac0e91d1))
10+
11+
## [v2.0.0-beta.27](https://github.com/marcantondahmen/automad/commit/6e97e9d6a8e33380428ceed04b61bcb8109d6464)
12+
13+
Sun, 12 Apr 2026 20:41:57 +0200
614

715
### New Features
816

automad/src/server/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* @license See LICENSE.md for license information
5757
*/
5858
class App {
59-
const VERSION = '2.0.0-beta.27';
59+
const VERSION = '2.0.0-beta.28';
6060

6161
/**
6262
* Required PHP version.

automad/src/server/Controllers/API/UserCollectionController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
namespace Automad\Controllers\API;
3737

3838
use Automad\API\Response;
39+
use Automad\App;
3940
use Automad\Core\Messenger;
4041
use Automad\Core\Request;
4142
use Automad\Core\Text;
@@ -57,6 +58,10 @@ class UserCollectionController {
5758
* @return Response the response object
5859
*/
5960
public static function createFirstUser(): Response {
61+
if (is_readable(UserCollection::FILE_ACCOUNTS)) {
62+
App::exit('Another user has been created already', '', 403);
63+
}
64+
6065
$Response = new Response();
6166

6267
if (empty($_POST)) {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "automad",
3-
"version": "2.0.0-beta.27",
3+
"version": "2.0.0-beta.28",
44
"description": "Automad",
55
"author": "Marc Anton Dahmen",
66
"private": true,

0 commit comments

Comments
 (0)