mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #58604
[Bug 1871280] Re: Allow grouproles to be reset for users when roles updated via webservices
** Changed in: mahara/19.10
Status: In Progress => Won't Fix
** Changed in: mahara/19.10
Milestone: 19.10.4 => None
--
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/1871280
Title:
Allow grouproles to be reset for users when roles updated via
webservices
Status in Mahara:
In Progress
Status in Mahara 19.04 series:
Won't Fix
Status in Mahara 19.10 series:
Won't Fix
Status in Mahara 20.04 series:
In Progress
Status in Mahara 20.10 series:
In Progress
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->reset_grouproles() function - so this patch is only fixing the problem when group_create() is called. In 'normal' Mahara we can't create a group with more than the current user, but via webservice we can create a group with many members at once and that causes this problem.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1871280/+subscriptions
References