我的问题很愚蠢,但无论如何。我已经基于自定义字段中的信息创建了一个用于下载文件的脚本。因此,现在我需要检查该脚本,如果尝试下载文件的用户是经过身份验证的sugarcrm用户。你有什么想法?
最佳答案
将条目添加到SugarCRM“入口点”文件。
编辑/custom/include/MVC/Controller/entry_point_registry.php
并添加以下内容:
$entry_point_registry['my_entry_point'] = array('file' => 'custom/mypath/myscript.php', 'auth' => true);
转到
http://localhost/index.php?entryPoint=my_entry_point
。最后一个路径
'auth' => true
意味着用户需要登录到sugarCRM。
关于authentication - 如何在Sugarcrm自定义脚本中检查用户身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10111691/