Allow grouproles to be reset for account holders when roles updated via webservices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Unassigned | ||
20.04 |
Fix Released
|
Medium
|
Unassigned | ||
20.10 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
When creating new groups via webservices while the user is logged in.
The "group/find.php" search works with a user's grouproles and when a group is created via webservice the grouproles are not reset for the session. So only after the user logged out and logged in again, the group is found with "group/find.php".
We need to set a flag so that when a person loads anything in mahara (eg calls the $user->renew() function) that it resets the group roles for the user so they don't have to logout and login again.
Added from discussion with Robert (2020-05-08):
The group_add_user() and group_remove_user() functions already call the $USER->
Changed in mahara: | |
importance: | Undecided → Wishlist |
status: | New → In Progress |
description: | updated |
no longer affects: | mahara/19.04 |
no longer affects: | mahara/19.10 |
summary: |
- Allow grouproles to be reset for users when roles updated via + Allow grouproles to be reset for account holders when roles updated via webservices |
Changed in mahara: | |
milestone: | 20.10.0 → none |
Patch for "master" branch: https:/ /reviews. mahara. org/10864