Skip to content

Commit

Permalink
Fix permission check for duplicating slides
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Apr 1, 2022
1 parent bed4719 commit ee3fe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slider.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function slideOnloadCallback($dc)

case 'cut':
case 'copy':
if (Input::get('act') == 'cut' && Input::get('mode') == 1) {
if (Input::get('mode') == 1) {
$objArchive = $this->Database->prepare("SELECT pid FROM tl_rocksolid_slide WHERE id=?")
->limit(1)
->execute(Input::get('pid'));
Expand Down

0 comments on commit ee3fe89

Please sign in to comment.