Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cron script does not define the actor correctly #181

Closed
wessama opened this issue Jun 13, 2020 · 1 comment
Closed

Cron script does not define the actor correctly #181

wessama opened this issue Jun 13, 2020 · 1 comment

Comments

@wessama
Copy link

wessama commented Jun 13, 2020

The cron task is designed to pull learner completion data based on the currently logged in $USER.

Problem is this $USER variable defaults to the "Admin User" when the task runs on the server, and no activity statements are ever returned because the actor being sent to the LRS is always going to be "Admin". I had to override this behavior to instead use the user ID passed in by Moodle when it attempts to update an activity's completion state, and I wanted to know if this was intentional behavior.

@davidpesce
Copy link
Owner

Fixed in #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants