Skip to content

Commit

Permalink
Add default permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Jul 22, 2017
1 parent e280ffe commit 8c55eb4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"source": "https://github.com/flarum/flarum-ext-flags"
},
"require": {
"flarum/core": "^0.1.0-beta.6"
"flarum/core": "^0.1.0-beta.7"
},
"autoload": {
"psr-4": {
Expand Down
18 changes: 18 additions & 0 deletions migrations/2017_07_22_000000_add_default_permissions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

/*
* This file is part of Flarum.
*
* (c) Toby Zerner <[email protected]>
*
* 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.flagPosts' => Group::MEMBER_ID,
'discussion.viewFlags' => Group::MODERATOR_ID
]);

0 comments on commit 8c55eb4

Please sign in to comment.