SAK-23825 Correctly get the exsiting role when multiple sections used.

The existing role and the new role where both set to the new value, this caused a lower role in a second section to incorrecly take precendence.

Patch from Juan José Meroño Sánchez.

git-svn-id: https://source.sakaiproject.org/svn/providers/trunk@310806 66ffb92e-73f9-0310-93c1-f5514f145a0a
SAK-23825 Test case for correctly getting roles with multiple sections.

This is a test case to check that when multiple sections are present and the same user is present those that the correct role is chosen.

git-svn-id: https://source.sakaiproject.org/svn/providers/trunk@310807 66ffb92e-73f9-0310-93c1-f5514f145a0a