mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-23 13:37:59 +01:00
17 lines
350 B
PHP
17 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');
|
|
}
|
|
}
|