mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 07:17:59 +01:00
18 lines
350 B
PHP
18 lines
350 B
PHP
|
<?php
|
||
|
|
||
|
namespace Poniverse\Ponyfm\Policies;
|
||
|
|
||
|
use Poniverse\Ponyfm\Models\ShowSong;
|
||
|
use Poniverse\Ponyfm\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');
|
||
|
}
|
||
|
}
|