añadido crd para Song y transladada la logica de /gallery a un controller
This commit is contained in:
@@ -26,10 +26,10 @@ class SongPolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public function create(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
@@ -44,7 +44,7 @@ class SongPolicy
|
||||
*/
|
||||
public function delete(User $user, Song $song): bool
|
||||
{
|
||||
return $song->user_id === $user->id;
|
||||
return $song->user_id == $user->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user