koel/app/Policies/PlaylistFolderPolicy.php
2024-07-06 17:44:44 +02:00

14 lines
234 B
PHP

<?php
namespace App\Policies;
use App\Models\PlaylistFolder;
use App\Models\User;
class PlaylistFolderPolicy
{
public function own(User $user, PlaylistFolder $folder): bool
{
return $folder->ownedBy($user);
}
}