añadido crd para Song y transladada la logica de /gallery a un controller
This commit is contained in:
1 parent
c8d64406f5
commit
55b130edad
19 files changed
+464
-80
No files matched your search
@@ -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