mirror of
https://github.com/flarum/core.git
synced 2025-08-07 17:07:19 +02:00
Add default settings and permissions
This commit is contained in:
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
|
||||||
|
]);
|
Reference in New Issue
Block a user