mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-26 06:57:58 +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');
|
||
|
}
|
||
|
}
|