This commit is contained in:
2026-03-02 07:01:14 +05:00
parent 06617a0005
commit b7bc192e6f
2 changed files with 3 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ class Category extends Model implements HasMedia, Sortable
{
$this->addMediaCollection('uploads')
->singleFile()
->acceptsMimeTypes(['image/jpg', 'image/jpeg', 'image/png'])
->acceptsMimeTypes()
->useFallbackUrl(
sprintf('%s/logo-space.png', config('app.url'))
);

View File

@@ -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();