Files: Check access rights on a selected folder on new file form submit (Bifrost#T173150)

This commit is contained in:
Aleksander Machniak 2019-03-18 10:07:30 +01:00
parent a86269b653
commit a76210317d

View file

@ -778,7 +778,7 @@ function kolab_files_file_create_dialog(file)
create_func = function(dialog, editaction) {
var sel, folder = select.val(), type = type_select.val(), name = input.val();
if (!name || !folder)
if (!name || !folder || !file_api.is_writable(folder))
return;
if (!/\.[a-z0-9]{1,5}$/.test(name)) {