This commit is contained in:
Yuri Kuznetsov
2014-05-01 12:49:08 +03:00
parent bf58657400
commit 71449daa1b
9 changed files with 52 additions and 6 deletions

View 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
{
}

View File

@@ -212,6 +212,11 @@ class Acl
'edit' => 'own',
'delete' => 'own',
);
$this->data['EmailAddress'] = array(
'read' => 'all',
'edit' => 'no',
'delete' => 'no',
);
}
private function merge($tables)

View File

@@ -1 +1 @@
["name"]
[]

View File

@@ -12,7 +12,9 @@
"body": "Body",
"subject": "Subject",
"attachments": "Attachments",
"selectTemplate": "Select Template"
"selectTemplate": "Select Template",
"fromEmailAddress": "Email From",
"toEmailAddresses": "Email To"
},
"links": {
},

View File

@@ -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",

View File

@@ -2,5 +2,6 @@
"dateSent",
"parent",
"body",
"from"
"fromEmailAddress",
"toEmailAddresses"
]

View File

@@ -0,0 +1,3 @@
{
"controller": "Controllers.Record"
}

View File

@@ -16,7 +16,13 @@
"type": "varchar",
"db": false,
"required": true
},
},
"fromEmailAddress": {
"type": "link"
},
"toEmailAddresses": {
"type": "linkMultiple"
},
"to": {
"type": "varchar",
"db": false,