permission(webforms): attachments private

This commit is contained in:
Rushabh Mehta 2018-08-05 22:29:01 +05:30
parent bb67915445
commit a07e76d27e

View file

@ -51,6 +51,10 @@ export default class WebForm {
df.options = null;
}
if (df.fieldtype==='Attach') {
df.is_private = true;
}
// Set defaults
if (query_params && query_params["new"] == 1 && df.fieldname in query_params) {
df.default = query_params[df.fieldname];