It's all about the answers!

Ask a question

Can a Server-side plugin run in a different context?


Susan Hanson (1.6k2192194) | asked Jun 18 '14, 7:17 a.m.
I have an SSP, and it runs in the context of the person who "hit the Save button" ... as it should :-)
Is there any way to change the context that it runs in?  We have a few cases where we want to Plugin to do things that we don't want a normal user to be able to do.

Susan

2 answers



permanent link
sam detweiler (12.5k6189201) | answered Jun 18 '14, 7:23 a.m.
the only thing you could do is write an event handler, which runs under the server context, not as a user.
I don't know what permissions it would have.

permanent link
Ralph Schoon (61.8k33643) | answered Jun 18 '14, 7:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't think this is possible. At least not easily. You could try to trigger some asynchronous task that runs in a different context as described here: http://jorgediazblog.wordpress.com/2013/06/28/rtc-custom-scheduled-async-task-example-explained/

Your answer


Register or to post your answer.