1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

making posts and discussions private (#1153)

* flagrow/byobu#11 making posts and discussions private

* tested migrations and tested setting is_private on discussion and post manually

* added phpdoc for Post and Discussion and added the casting for these attributes

* satisfying styleci

* fixes for review

* added new private discussion event and included it in the access policy

* added new private post event and included it in the access policy
This commit is contained in:
Daniël Klabbers
2017-05-27 06:49:15 +02:00
committed by Toby Zerner
parent af86795ed1
commit 4e628ad47e
8 changed files with 169 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
<?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\Database\Migration;
return Migration::addColumns('discussions', [
'is_private' => ['boolean', 'default' => false]
]);

View File

@@ -0,0 +1,16 @@
<?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\Database\Migration;
return Migration::addColumns('posts', [
'is_private' => ['boolean', 'default' => false]
]);