wip
This commit is contained in:
@@ -64,8 +64,8 @@ class ChannelPolicy
|
||||
*/
|
||||
public function update(User $user, Channel $channel): Response
|
||||
{
|
||||
if ($user->hasRole(['admin'])) {
|
||||
return $this->allow();
|
||||
if (tmpostChannel()->slug === $channel->slug) {
|
||||
return $this->deny();
|
||||
}
|
||||
|
||||
return $this->deny();
|
||||
|
||||
Reference in New Issue
Block a user