mirror of
https://github.com/flarum/framework.git
synced 2025-03-28 10:15:15 +08:00
Add default settings and permissions
This commit is contained in:
parent
2cb560e59a
commit
a82404f1c9
15
extensions/nicknames/migrations/2020_12_02_000000_set_default_settings.php
Executable file
15
extensions/nicknames/migrations/2020_12_02_000000_set_default_settings.php
Executable 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',
|
||||
]);
|
@ -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
|
||||
]);
|
Loading…
x
Reference in New Issue
Block a user