Sugar CRM 中的模块访问-soap 和 web 之间的区别(非管理)?

发布于 2024-10-05 16:04:47 字数 190 浏览 0 评论 0原文

我们有一个自定义的 Sugar 装备(使用 GWT 来处理各种前端内容),并且我们使用 SOAP API 来进行大部分查询(相对于直接查询数据库)。

用于检查凭据的 API 调用之一是 get_available_modules,它返回给定用户的所有可用模块。用户如何能够访问 Web 界面中的模块,而不是通过 SOAP 调用(相同的会话 ID?)。

We've a custom rigging of Sugar (using GWT for various front end stuff), and we use the SOAP API for much of our querying (vs. directly to the DB).

One of the API calls to check credentials is get_available_modules, which returns all available modules for a given user. How could a user have access to a module in the web interface, but not via a SOAP call (same session id?).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等风来 2024-10-12 16:04:47

不完全确定你的问题。您是否希望用户能够从 Web 访问一组模块,并通过soap 访问另一组模块?或者你的设置有什么不同吗?

首先,用户在 Web 上的可用模块和肥皂调用之间不应存在差异。

如果您希望为每种访问方法设置不同的设置,则需要更改例如soap Web服务中的“get_available_modules”。一种粗略的方法可能是在 config_override.php 中创建一个覆盖数组,然后对照肥皂函数中的该数组进行检查。

Not entirely sure on your question. Do you want a user to hve access to one set of modules from web and another set via soap? Or is there a difference on you setup?

First off, there should not be a difference between a user's available modules on web and soap calls.

If you want a different set for each access method, you need to change e.g. "get_available_modules" in the soap web service. One crude approch could be to make an override array in config_override.php abd check against that array in the soap function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文