Don't add institution profile access before profile is created (bug #807278)
When arriving at Mahara for the first time via SSO, the newly created user
is added to an institution. During that process an attempt is made to add
institution access to the user's profile view before it gets created. This
patch adds a check (and when the profile view eventually gets created,
institution access is added for all the owner's institutions).
Change-Id: I6a6d4fc3dcb324905e67f4d52aac4160cf9ce089
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/730 gitorious. org/mahara/ mahara/ commit/ 468bfda69322c22 9b34b0358d506d8 dd759818de
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 468bfda69322c22 9b34b0358d506d8 dd759818de
Author: Richard Mansfield <email address hidden>
Date: Thu Sep 22 18:11:58 2011 +1200
Don't add institution profile access before profile is created (bug #807278)
When arriving at Mahara for the first time via SSO, the newly created user
is added to an institution. During that process an attempt is made to add
institution access to the user's profile view before it gets created. This
patch adds a check (and when the profile view eventually gets created,
institution access is added for all the owner's institutions).
Change-Id: I6a6d4fc3dcb324 905e67f4d52aac4 160cf9ce089
Signed-off-by: Richard Mansfield <email address hidden>