-
Notifications
You must be signed in to change notification settings - Fork 292
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
Imported course doesn't set correct ownership #2697
Comments
+1 I can confirm this is happening on my fresh install |
|
I will apply this change to my own trial server and look for volunteers to help me test it further. EDIT - I've changed the node module version and everything appears to be working fine. However, I ideally would like to have some concurrent users to test this with. I'll raise this on the 18th April meeting. The main two issues (from my experience) are:
|
Seems to have been an issue 3 years ago (but was fixed then) #2540 |
On a production AT with 15+ users I reverted the Mongoose version back to I'll create a PR for this version and once done I think everything will be ready for a 0.11.2 release. |
#### Fixing domainsEnabled issue in Adapt Authoring If you are getting following error in console ``` (node:23152) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead. (Triggered by calling processImmediate on process.) (Use `node --trace-deprecation ...` to show where the warning was created) ``` Then follow the steps mentioned below: Steps: 1. Application.js 1. Modify connection options with domainsEnabled for connect-mongodb-session 2. Instead of requestDomain.enter use requestDomain.run(next) and comment next() 2. permissions.js inside policyChecker function 1. Line 497, update to 1. const user = app.usermanager.getCurrentUser() || JSON.parse(JSON.stringify(req.session.passport.user)); 3. Manually install 1. npm i [email protected] 2. npm i [email protected]
Expected Behaviour
When an author imports a course (import account), they should be the owner of the course.
Actual Behaviour
The course that gets imported becomes owned by the AT installation account (Installer account). The import account cannot see the account.
Steps to Reproduce
Versions
The text was updated successfully, but these errors were encountered: