mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Add default permissions
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
"source": "https://github.com/flarum/flarum-ext-flags"
|
"source": "https://github.com/flarum/flarum-ext-flags"
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"flarum/core": "^0.1.0-beta.6"
|
"flarum/core": "^0.1.0-beta.7"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@@ -0,0 +1,18 @@
|
|||||||
|
<?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\Core\Group;
|
||||||
|
use Flarum\Database\Migration;
|
||||||
|
|
||||||
|
return Migration::addPermissions([
|
||||||
|
'discussion.flagPosts' => Group::MEMBER_ID,
|
||||||
|
'discussion.viewFlags' => Group::MODERATOR_ID
|
||||||
|
]);
|
Reference in New Issue
Block a user