diff --git a/src/Slider.php b/src/Slider.php index 5207a88..8a48e41 100644 --- a/src/Slider.php +++ b/src/Slider.php @@ -522,17 +522,12 @@ public function slideOnloadCallback($dc) switch (Input::get('act')) { case 'paste': case 'select': + case 'create': if (!in_array(CURRENT_ID, $root)) { throw new AccessDeniedException('Not enough permissions to access slider ID ' . $id . '.'); } break; - case 'create': - if (!Input::get('pid') || !in_array(Input::get('pid'), $root)) { - throw new AccessDeniedException('Not enough permissions to create slides in slider ID ' . Input::get('pid') . '.'); - } - break; - case 'cut': case 'copy': if (Input::get('act') == 'cut' && Input::get('mode') == 1) {