← Back to team overview

mahara-contributors team mailing list archive

[Bug 1046114] Re: Errors when adding new institution members

 

Probably because we're drawing their institution memberships from the
database when they log in, and then storing them in the user's session
and not checking for updates on subsequent page loads (since it's quite
rare for a user's institution memberships to change).

We could force the user to log out and back in again, though, by calling
the function remove_user_sessions($userid). For instance, this is what
we call in admin/users/edit.php, when an admin changes a user's account
settings, to force them to log out and back in again.

Cheers,
Aaron

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1046114

Title:
  Errors when adding new institution members

Status in Mahara ePortfolio:
  Triaged

Bug description:
  Versions: all
  Platforms: all
  Browsers: all

  Assumptions
   - User 'u01' is the admin of institution 'A' with the option 'Confirm registration' is on
   - The logged in user 'u02' is not the member of institution 'A'.

  Actions
   1. The logged in User 'u02' sent a requested membership of institution 'A'.
   2. User 'u01' added user 'u02' as a new member of institution 'A'.
   3. User 'u02' without re-login access to the 'Institution membership' page and send a request AGAIN.
   4. User 'u01' AGAIN added user 'u02' to institution 'A'.

  Expected results
   - The system should refuse user 'u01' to add user u02 AGAIN, then display a message about the reason.

  Actual results
   - Errors raised
  (see the attached image)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1046114/+subscriptions


References