Commit d432efeb authored by Serge S. Koval's avatar Serge S. Koval

Fixed #437. Additionally check if file is editable

parent 8b1e0fc2
...@@ -672,7 +672,7 @@ class FileAdmin(BaseView, ActionsMixin): ...@@ -672,7 +672,7 @@ class FileAdmin(BaseView, ActionsMixin):
base_path, full_path, path = self._normalize_path(path) base_path, full_path, path = self._normalize_path(path)
if not self.is_accessible_path(path): if not self.is_accessible_path(path) or not self.is_file_editable(path):
flash(gettext(gettext('Permission denied.'))) flash(gettext(gettext('Permission denied.')))
return redirect(self._get_dir_url('.index')) return redirect(self._get_dir_url('.index'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment