From 4e9184ae32b43a825a1e94635748b8c5a20f98bd Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 22 Jul 2017 12:16:24 +0930 Subject: [PATCH] Add default permissions --- extensions/suspend/composer.json | 2 +- ...017_07_22_000000_add_default_permissions.php | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 extensions/suspend/migrations/2017_07_22_000000_add_default_permissions.php diff --git a/extensions/suspend/composer.json b/extensions/suspend/composer.json index 24b370c71..6851808c9 100644 --- a/extensions/suspend/composer.json +++ b/extensions/suspend/composer.json @@ -15,7 +15,7 @@ "source": "https://github.com/flarum/flarum-ext-suspend" }, "require": { - "flarum/core": "^0.1.0-beta.6" + "flarum/core": "^0.1.0-beta.7" }, "autoload": { "psr-4": { diff --git a/extensions/suspend/migrations/2017_07_22_000000_add_default_permissions.php b/extensions/suspend/migrations/2017_07_22_000000_add_default_permissions.php new file mode 100644 index 000000000..6c7201dd8 --- /dev/null +++ b/extensions/suspend/migrations/2017_07_22_000000_add_default_permissions.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\Core\Group; +use Flarum\Database\Migration; + +return Migration::addPermissions([ + 'user.suspend' => Group::MODERATOR_ID +]);