|
|
@@ -328,6 +328,7 @@ class TableAcl extends Core_AclBase {
|
|
|
}
|
|
|
public function canReadField($fieldName) {
|
|
|
$idZasob = $this->getFieldIdByName($fieldName);
|
|
|
+ // DBG::log($this->_fields[$idZasob], 'array', "canReadField({$fieldName})");
|
|
|
if (!$idZasob) return false;
|
|
|
if ('ID' == $fieldName) return true;
|
|
|
if ('A_RECORD_CREATE_DATE' == $fieldName) return true;
|
|
|
@@ -336,6 +337,7 @@ class TableAcl extends Core_AclBase {
|
|
|
if ('A_RECORD_UPDATE_AUTHOR' == $fieldName) return true;
|
|
|
if ($this->hasFieldPerm($idZasob, $taskPerm = 'R')) return true;
|
|
|
if ($this->hasFieldPerm($idZasob, $taskPerm = 'V')) return true;
|
|
|
+ if ($this->hasFieldPerm($idZasob, $taskPerm = 'O')) return true; // TODO: has 'O' ? @see canReadObjectField
|
|
|
return false;
|
|
|
}
|
|
|
public function canReadObjectField($fieldName, $record) {
|