This commit is contained in:
yuri
2016-01-08 15:18:48 +02:00
parent 4b4f8d2cc4
commit f6f58c679d
4 changed files with 7 additions and 14 deletions

View File

@@ -25,14 +25,19 @@
*
* In accordance with Section 7(b) of the GNU General Public License version 3,
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
************************************************************************/
************************************************************************/
namespace Espo\Controllers;
use \Espo\Core\Exceptions\Forbidden;
class EmailAddress extends \Espo\Core\Controllers\Record
{
public function actionSearchInAddressBook($params, $data, $request)
{
if (!$this->getAcl()->checkScope('Email')) {
throw new Forbidden();
}
$q = $request->get('q');
$limit = intval($request->get('limit'));
if (empty($limit) || $limit > 30) {

View File

@@ -3,5 +3,5 @@
{"name":"subject","width":35,"link":true,"notSortable": true},
{"name":"status","notSortable": true, "width":10},
{"name":"parent","notSortable": true, "width": 16},
{"name":"dateSent","view": "views/fields/date-time-short", "notSortable": true, "width":10, "align": "right"}
{"name":"dateSent","view": "views/fields/datetime-short", "notSortable": true, "width":10, "align": "right"}
]

View File

@@ -22,21 +22,11 @@
"edit": "no",
"delete": "no"
},
"EmailAddress": {
"read": "no",
"edit": "no",
"delete": "no"
},
"Attachment": {
"read": "own",
"edit": "own",
"delete": "own"
},
"PhoneNumber": {
"read": "no",
"edit": "no",
"delete": "no"
},
"EmailAccount": {
"read": "own",
"edit": "own",

View File

@@ -14,13 +14,11 @@
"delete": "own"
},
"Portal": false,
"EmailAddress": false,
"Attachment": {
"read": "own",
"edit": "own",
"delete": "own"
},
"PhoneNumber": false,
"EmailAccount": false,
"Role": false,
"PortalRole": false,