From c070c9d35c22ebd6551386e862406e1e1febebf7 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Mon, 16 Jul 2018 00:41:55 +0200 Subject: [PATCH] Add migration for new hidePosts permission Refs #1387 and #1466. --- ...6_003952_allow_hide_posts_for_moderators.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 framework/core/migrations/2018_07_16_003952_allow_hide_posts_for_moderators.php diff --git a/framework/core/migrations/2018_07_16_003952_allow_hide_posts_for_moderators.php b/framework/core/migrations/2018_07_16_003952_allow_hide_posts_for_moderators.php new file mode 100644 index 000000000..57203b7b1 --- /dev/null +++ b/framework/core/migrations/2018_07_16_003952_allow_hide_posts_for_moderators.php @@ -0,0 +1,17 @@ + + * + * 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 +]);