mirror of
https://github.com/koel/koel
synced 2024-12-25 03:53:05 +00:00
14 lines
221 B
PHP
14 lines
221 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\Playlist;
|
|
use App\Models\User;
|
|
|
|
class PlaylistPolicy
|
|
{
|
|
public function own(User $user, Playlist $playlist): bool
|
|
{
|
|
return $playlist->user->is($user);
|
|
}
|
|
}
|