Kentico_RichardS
-
1/21/2014 1:42:39 AM
RE:Custom Scheduled Task not running under selected User Context
Hi Dave,
Thank you for your message.
I believe that this is caused by the fact the the CMS.Context.CurrentUser is always holding a currently logged user. The setting in Scheduled task is to set in which context should the task run, not to override the CMS.Context.CurrentUser (that will always be you as a logged user). So you should alter your code in order to make it right, I hope this will help you in understanding the problem.
Kind regards, Richard Sustek
|