Add default settings and permissions

This commit is contained in:
Alexander Skvortsov 2020-12-02 15:10:46 -05:00
parent 2cb560e59a
commit a82404f1c9
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Database\Migration;
return Migration::addSettings([
'flarum-nicknames.max' => '150',
'flarum-nicknames.min' => '1',
]);

View File

@ -0,0 +1,15 @@
<?php
/*
* This file is part of Flarum.
*
* For detailed copyright and license information, please view the
* LICENSE file that was distributed with this source code.
*/
use Flarum\Database\Migration;
use Flarum\Group\Group;
return Migration::addPermissions([
'user.editOwnNickname' => Group::MEMBER_ID
]);