class ChannelPolicy (View source)

Methods

__construct(PermissionCollection $permissions)

No description

bool
post(User $user, Channel $channel)

Users can post in a channel if they have permission.

Details

__construct(PermissionCollection $permissions)

No description

Parameters

PermissionCollection $permissions

bool post(User $user, Channel $channel)

Users can post in a channel if they have permission.

Parameters

User $user
Channel $channel

Return Value

bool