mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
This commit is contained in:
28
application/Espo/Controllers/EmailAddress.php
Normal file
28
application/Espo/Controllers/EmailAddress.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/************************************************************************
|
||||
* This file is part of EspoCRM.
|
||||
*
|
||||
* EspoCRM - Open Source CRM application.
|
||||
* Copyright (C) 2014 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
|
||||
* Website: http://www.espocrm.com
|
||||
*
|
||||
* EspoCRM is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* EspoCRM is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with EspoCRM. If not, see http://www.gnu.org/licenses/.
|
||||
************************************************************************/
|
||||
|
||||
namespace Espo\Controllers;
|
||||
|
||||
class EmailAddress extends \Espo\Core\Controllers\Record
|
||||
{
|
||||
|
||||
}
|
||||
@@ -212,6 +212,11 @@ class Acl
|
||||
'edit' => 'own',
|
||||
'delete' => 'own',
|
||||
);
|
||||
$this->data['EmailAddress'] = array(
|
||||
'read' => 'all',
|
||||
'edit' => 'no',
|
||||
'delete' => 'no',
|
||||
);
|
||||
}
|
||||
|
||||
private function merge($tables)
|
||||
|
||||
@@ -1 +1 @@
|
||||
["name"]
|
||||
[]
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
["name"]
|
||||
@@ -12,7 +12,9 @@
|
||||
"body": "Body",
|
||||
"subject": "Subject",
|
||||
"attachments": "Attachments",
|
||||
"selectTemplate": "Select Template"
|
||||
"selectTemplate": "Select Template",
|
||||
"fromEmailAddress": "Email From",
|
||||
"toEmailAddresses": "Email To"
|
||||
},
|
||||
"links": {
|
||||
},
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
"Role": "Role",
|
||||
"EmailTemplate": "Email Template",
|
||||
"OutboundEmail": "Outbound Email",
|
||||
"EmailAddress": "Email Address",
|
||||
"ScheduledJob": "Scheduled Job"
|
||||
},
|
||||
"scopeNamesPlural": {
|
||||
@@ -15,7 +16,8 @@
|
||||
"Role": "Roles",
|
||||
"EmailTemplate": "Email Templates",
|
||||
"OutboundEmail": "Outbound Emails",
|
||||
"ScheduledJob": "Scheduled Jobs"
|
||||
"ScheduledJob": "Scheduled Jobs",
|
||||
"EmailAddress": "Email Addresses"
|
||||
},
|
||||
"labels": {
|
||||
"Merge": "Merge",
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
"dateSent",
|
||||
"parent",
|
||||
"body",
|
||||
"from"
|
||||
"fromEmailAddress",
|
||||
"toEmailAddresses"
|
||||
]
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"controller": "Controllers.Record"
|
||||
}
|
||||
@@ -16,7 +16,13 @@
|
||||
"type": "varchar",
|
||||
"db": false,
|
||||
"required": true
|
||||
},
|
||||
},
|
||||
"fromEmailAddress": {
|
||||
"type": "link"
|
||||
},
|
||||
"toEmailAddresses": {
|
||||
"type": "linkMultiple"
|
||||
},
|
||||
"to": {
|
||||
"type": "varchar",
|
||||
"db": false,
|
||||
|
||||
Reference in New Issue
Block a user