mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +01:00
19 lines
319 B
PHP
19 lines
319 B
PHP
<?php
|
|
|
|
namespace App\Policies;
|
|
|
|
use App\Models\ShowSong;
|
|
use App\Models\User;
|
|
|
|
class ShowSongPolicy
|
|
{
|
|
public function rename(User $user, ShowSong $song)
|
|
{
|
|
return $user->hasRole('admin');
|
|
}
|
|
|
|
public function delete(User $user, ShowSong $song)
|
|
{
|
|
return $user->hasRole('admin');
|
|
}
|
|
}
|