Files: Check access rights on a selected folder on new file form submit (Bifrost#T173150)
This commit is contained in:
parent
a86269b653
commit
a76210317d
1 changed files with 1 additions and 1 deletions
|
@ -778,7 +778,7 @@ function kolab_files_file_create_dialog(file)
|
||||||
create_func = function(dialog, editaction) {
|
create_func = function(dialog, editaction) {
|
||||||
var sel, folder = select.val(), type = type_select.val(), name = input.val();
|
var sel, folder = select.val(), type = type_select.val(), name = input.val();
|
||||||
|
|
||||||
if (!name || !folder)
|
if (!name || !folder || !file_api.is_writable(folder))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!/\.[a-z0-9]{1,5}$/.test(name)) {
|
if (!/\.[a-z0-9]{1,5}$/.test(name)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue