我想根据自定义规则限制对记录的编辑。我能够限制列表视图,但似乎无法使编辑限制起作用。
在自定义控制器中,我有
class CustomOpportunitiesController extends SugarController {
protected function action_editview() {
$this->bean = new CustomOpportunity();
// parent::action_editview(); // There is no action_editview() in SugarController
$this->view_object_map['bean'] = $this->bean;
$this->view = 'edit';
}
但是,当我添加它时,每当我尝试编辑记录时,它都会转到创建记录!
也绝对没有(有用的)文档。 http://support.sugarcrm.com/02_Documentation/04_Sugar_Developer/Sugar_Developer_Guide_6.5/02_Application_Framework/ACL
版本 6.5.13。
(我在子类中也有代码,但现在已被注释掉。)
class CustomOpportunity extends Opportunity {
// function ACLAccess($view,$is_owner='not_set') { ...