Add migration for new hidePosts permission

Refs #1387 and #1466.
This commit is contained in:
Franz Liedke 2018-07-16 00:41:55 +02:00
parent 1c152a7265
commit c070c9d35c

View File

@ -0,0 +1,17 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full 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([
'discussion.hidePosts' => Group::MODERATOR_ID
]);