← Back to team overview

mahara-contributors team mailing list archive

[Bug 1471742] Re: webservice mahara_user_get_users doesn't work (or do what it implies)

 

** Changed in: mahara
       Status: New => Invalid

-- 
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/1471742

Title:
  webservice mahara_user_get_users doesn't work (or do what it implies)

Status in Mahara:
  Invalid

Bug description:
  There's no reason to suspect from the description that this function
  does anything other than return all users on the site. However,
  running it returns an empty array

  On further investigation, the query returning the users looks for them
  being in an institution called $WEBSERVICE_INSTITUTION (a global
  variable!!). I think what's going on is that the authentication code
  is trying to set the global to match the institution of the user using
  webservices so that it only returns that user's list of users.
  However, if that person has admin rights then it probably isn't going
  to work.

  I'm not sure that this is really a bug or it's working as intended,
  but it probably needs to be made clearer what it actually does. This
  institution 'side affect' seems to effect a number of the services.

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


References