mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
attachment: forbid parent
This commit is contained in:
@@ -97,10 +97,6 @@ class Cleanup extends \Espo\Core\Jobs\Base
|
||||
'OR' => array(
|
||||
array(
|
||||
'role' => ['Export File']
|
||||
),
|
||||
array(
|
||||
'role' => ['Attachment'],
|
||||
'parentId' => null
|
||||
)
|
||||
),
|
||||
'createdAt<' => $dateBefore
|
||||
|
||||
@@ -62,6 +62,9 @@
|
||||
"fieldLevel": {
|
||||
},
|
||||
"scopeFieldLevel": {
|
||||
"Attachment": {
|
||||
"parent": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
|
||||
@@ -60,6 +60,9 @@
|
||||
},
|
||||
"Meeting": {
|
||||
"reminders": false
|
||||
},
|
||||
"Attachment": {
|
||||
"parent": false
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -260,8 +260,6 @@ Espo.define('views/fields/file', 'views/fields/link', function (Dep) {
|
||||
attachment.set('type', fileParams.type || 'text/plain');
|
||||
attachment.set('size', fileParams.size);
|
||||
attachment.set('role', 'Attachment');
|
||||
attachment.set('parentType', this.model.name);
|
||||
attachment.set('parentId', this.model.id);
|
||||
|
||||
attachment.once('sync', function () {
|
||||
if (!isCanceled) {
|
||||
|
||||
Reference in New Issue
Block a user