-
Improvement
-
Resolution: Fixed
-
Minor
-
3.8.1
-
MOODLE_38_STABLE
-
MOODLE_400_STABLE
-
MDL-67804-master -
In the app we want to logout the user if he's suspended. The problem is that we cannot distinguish the suspended user exception from other access exceptions since the specific data is only present in the debuginfo. This is because the error uses the websevice_access_exception class.
If would be nice if Moodle could return a different errorcode, exception or message for each exception so the app can tell which error is happening.
Example of what the app receives if a suspended user calls a WebService:
{"exception":"webservice_access_exception","errorcode":"accessexception","message":"Access control exception"}- blocks
-
MOBILE-3316 Handle user suspended use-case
- Closed