Skip to content

Commit

Permalink
Bugfix: Überschreiben von Originaldatei durch Redakteure
Browse files Browse the repository at this point in the history
Fix: Als Redakteur wurde immer die Originaldatei überschrieben, obwohl nur Recht für "Resultat der Bearbeitung als neue Datei speichern" gesetzt war.
  • Loading branch information
alexwenz committed Jan 26, 2024
1 parent 0b8cb0f commit 2ecd15d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package: cropper
version: '2.0.2'
version: '2.0.3'
author: Friends Of REDAXO
supportpage: https://github.com/FriendsOfREDAXO/cropper

Expand Down
2 changes: 1 addition & 1 deletion pages/mediapool.cropper.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<input type="checkbox" name="create_new_image" id="create_new_image" checked />
<span></span>' . rex_i18n::msg('cropper_img_save_info') . '</label>';
if (!rex::getUser()->hasPerm('cropper[overwrite]')) :
$checkbox = '<div class="nocheckbox">' . rex_i18n::msg('cropper_img_save_info_nochoice') .'</div>';
$checkbox = '<div class="nocheckbox"><input type="hidden" name="create_new_image" value="1" />' . rex_i18n::msg('cropper_img_save_info_nochoice') .'</div>';
endif;
$fragment = new rex_fragment();
$fragment->setVar('elements', array(
Expand Down

0 comments on commit 2ecd15d

Please sign in to comment.