acl and export

This commit is contained in:
yuri
2015-12-23 10:06:35 +02:00
parent d7d93e6a79
commit 181a680296
+10 -2
View File
@@ -1002,8 +1002,16 @@ class Record extends \Espo\Core\Services\Base
'deleted',
);
foreach ($this->exportSkipAttributeList as $field) {
$fieldListToSkip[] = $field;
foreach ($this->exportSkipAttributeList as $attribute) {
$fieldListToSkip[] = $attribute;
}
foreach ($this->getAcl()->getScopeForbiddenAttributeList($this->getEntityType(), 'read') as $attribute) {
$fieldListToSkip[] = $attribute;
}
foreach ($this->internalAttributeList as $attribute) {
$fieldListToSkip[] = $attribute;
}
$fieldList = null;