wip
This commit is contained in:
1 parent
06617a0005
commit
b7bc192e6f
2 files changed
+3
-3
No files matched your search
@@ -82,7 +82,7 @@ public function registerMediaCollections(): void
|
||||
{
|
||||
$this->addMediaCollection('uploads')
|
||||
->singleFile()
|
||||
->acceptsMimeTypes(['image/jpg', 'image/jpeg', 'image/png'])
|
||||
->acceptsMimeTypes()
|
||||
->useFallbackUrl(
|
||||
sprintf('%s/logo-space.png', config('app.url'))
|
||||
);
|
||||
|
||||
@@ -64,8 +64,8 @@ public function create(User $user): Response
|
||||
*/
|
||||
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