ソースを参照

Merge pull request #3521 from frappe/bcornwellmott-patch-1

Make upload files private by default
version-14
Makarand Bauskar 8年前
committed by GitHub
コミット
79a6adf73e
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      frappe/public/js/frappe/upload.js

+ 2
- 2
frappe/public/js/frappe/upload.js ファイルの表示

@@ -53,7 +53,7 @@ frappe.upload = {
$uploaded_files_wrapper.removeClass('hidden').empty();

file_array = file_array.map(
file => Object.assign(file, {is_private: opts.is_private || 0})
file => Object.assign(file, {is_private: opts.is_private || 1})
)
$upload.data('attached_files', file_array);

@@ -379,4 +379,4 @@ frappe.upload = {
d.show();
opts.confirm_is_private = 0;
}
}
}

読み込み中…
キャンセル
保存