AnsweredAssumed Answered

Can you override the current user's restrictions when using logic hooks?

Question asked by Dao Dao on May 12, 2014
Latest reply on May 14, 2014 by MILLERAT MILLERAT
Hi there,

In some case user actions have to "act locally on other modules".
In case of task closing (after physical intervention for exemple), the task's Hook (before save in this case) need to call the parent project's hook!

The goal is here to insure that this tasks is the last of the project and prepare some managing elements.

But typical users doesn't have write acces on the project module. It's better like this.

So the solution is to write again all the sequence on the task's Hook by passing though DB object. So baaaaad! So dirty!

So is there a way to avoid ACL verification or to use a special user in case of Before Save execution to override user's restrictions?

Sure it make a small hole in the wall. But better to keep gates full opened isn't it uh?

If many could help us.

Regards and thanks,

ps: SugarCRM 6.5.15 CE