diff --git a/extensions/approval/LICENSE b/extensions/approval/LICENSE index a502a8545..1e346ea06 100644 --- a/extensions/approval/LICENSE +++ b/extensions/approval/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2016 Toby Zerner +Copyright (c) 2014-2017 Toby Zerner Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/extensions/approval/composer.json b/extensions/approval/composer.json index 6acefd181..ae8410422 100644 --- a/extensions/approval/composer.json +++ b/extensions/approval/composer.json @@ -15,7 +15,7 @@ "source": "https://github.com/flarum/flarum-ext-approval" }, "require": { - "flarum/core": "^0.1.0-beta.6", + "flarum/core": "^0.1.0-beta.7", "flarum/flarum-ext-flags": "^0.1.0-beta.6" }, "autoload": { diff --git a/extensions/approval/migrations/2015_09_21_011527_add_is_approved_to_discussions.php b/extensions/approval/migrations/2015_09_21_011527_add_is_approved_to_discussions.php index c57bb42d3..43eb083b7 100644 --- a/extensions/approval/migrations/2015_09_21_011527_add_is_approved_to_discussions.php +++ b/extensions/approval/migrations/2015_09_21_011527_add_is_approved_to_discussions.php @@ -1,4 +1,5 @@ + * + * 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([ + 'discussion.startWithoutApproval' => Group::MEMBER_ID, + 'discussion.replyWithoutApproval' => Group::MEMBER_ID, + 'discussion.approvePosts' => Group::MODERATOR_ID +]); diff --git a/extensions/approval/src/Access/TagPolicy.php b/extensions/approval/src/Access/TagPolicy.php index dcc65f824..30e85a4d5 100755 --- a/extensions/approval/src/Access/TagPolicy.php +++ b/extensions/approval/src/Access/TagPolicy.php @@ -1,4 +1,5 @@