mirror of
https://github.com/flarum/core.git
synced 2025-08-21 07:41:49 +02:00
@@ -76,7 +76,6 @@ class ForumSerializer extends AbstractSerializer
|
||||
'allowSignUp' => (bool) $this->settings->get('allow_sign_up'),
|
||||
'defaultRoute' => $this->settings->get('default_route'),
|
||||
'canViewDiscussions' => $gate->allows('viewDiscussions'),
|
||||
'canViewUserList' => $gate->allows('viewUserList'),
|
||||
'canStartDiscussion' => $gate->allows('startDiscussion')
|
||||
];
|
||||
|
||||
|
@@ -274,10 +274,10 @@ class InstallCommand extends AbstractCommand
|
||||
{
|
||||
$permissions = [
|
||||
// Guests can view the forum
|
||||
[2, 'forum.view'],
|
||||
[2, 'viewDiscussions'],
|
||||
|
||||
// Members can create and reply to discussions
|
||||
[3, 'forum.startDiscussion'],
|
||||
[3, 'startDiscussion'],
|
||||
[3, 'discussion.reply'],
|
||||
|
||||
// Moderators can edit + delete stuff
|
||||
|
Reference in New Issue
Block a user