mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 12:16:14 +08:00
parent
148dd1cae1
commit
5c032cdd3a
|
@ -9,8 +9,8 @@
|
|||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
use Flarum\Database\Migration;
|
||||
use Flarum\Group\Group;
|
||||
use Flarum\Database\Migration;
|
||||
|
||||
return Migration::addPermissions([
|
||||
'discussion.startWithoutApproval' => Group::MEMBER_ID,
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
namespace Flarum\Approval\Access;
|
||||
|
||||
use Flarum\Tags\Tag;
|
||||
use Flarum\User\AbstractPolicy;
|
||||
use Flarum\User\User;
|
||||
use Flarum\Tags\Tag;
|
||||
|
||||
class TagPolicy extends AbstractPolicy
|
||||
{
|
||||
|
|
|
@ -11,9 +11,10 @@
|
|||
|
||||
namespace Flarum\Approval\Listener;
|
||||
|
||||
use Flarum\Api\Event\Serializing;
|
||||
use Flarum\Api\Serializer\BasicDiscussionSerializer;
|
||||
use Flarum\Api\Serializer\BasicPostSerializer;
|
||||
use Flarum\Api\Serializer\PostSerializer;
|
||||
use Flarum\Api\Event\Serializing;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class AddPostApprovalAttributes
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
namespace Flarum\Approval\Listener;
|
||||
|
||||
use Flarum\Approval\Event\PostWasApproved;
|
||||
use Flarum\Post\Event\Saving;
|
||||
use Flarum\User\AssertPermissionTrait;
|
||||
use Flarum\Post\Event\Saving;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class ApproveContent
|
||||
|
|
|
@ -11,10 +11,10 @@
|
|||
|
||||
namespace Flarum\Approval\Listener;
|
||||
|
||||
use Flarum\Event\ConfigureModelDefaultAttributes;
|
||||
use Flarum\Flags\Flag;
|
||||
use Flarum\Post\Event\Saving;
|
||||
use Flarum\Post\Post;
|
||||
use Flarum\Event\ConfigureModelDefaultAttributes;
|
||||
use Flarum\Post\Event\Saving;
|
||||
use Flarum\Flags\Flag;
|
||||
use Illuminate\Contracts\Events\Dispatcher;
|
||||
|
||||
class UnapproveNewContent
|
||||
|
|
Loading…
Reference in New Issue
Block a user