mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
04f1b34b8a
commit
213874cbeb
1 changed files with 39 additions and 39 deletions
|
@ -28,7 +28,7 @@ if (!User::isLogged()) {
|
|||
die(json_encode($obj));
|
||||
}
|
||||
$playList = new PlayList($_REQUEST['playlist_id']);
|
||||
if (!User::isAdmin() && User::getId() !== $playList->getUsers_id()) {
|
||||
if (!PlayLists::canManagePlaylist($_REQUEST['playlist_id'])) {
|
||||
$obj->msg = __("Permission denied");
|
||||
die(json_encode($obj));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue