Error on registration if confirmed registration is turned on and copy collection in play
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Robert Lyon | ||
1.7 |
Fix Released
|
High
|
Robert Lyon | ||
1.8 |
Fix Released
|
High
|
Robert Lyon | ||
1.9 |
Fix Released
|
High
|
Robert Lyon |
Bug Description
If you have an institution with:
- both "Registration allowed" and "Confirm registration" chosen in it's config.
- a collection that has the "Copy for new institution members" checked (under Admin -> Institution -> Share -> [name of collection] -> Advanced options)
When a new user registers the admin gets an email to approve them, and on approval, the new user gets an email to complete signup.
When the user clicks the complete signup link we get an error like:
[WAR] 5f (lib/view.php:503) View::_create: User 0 is not allowed to create a view for owner 13
Call stack (most recent first):
View:
View:
Collection:
User-
Institution
User-
create_
The problem being the system doesn't 'know' who is the authority user giving permission for this new user to copy the collection and so tries to do it with guest user (userid = 0).
We need to have a way of either working out who the authority user id would be - or ignore it in this particular case (if safe to do)
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Patch for "master" branch: https:/ /reviews. mahara. org/3691