Changes between Version 20 and Version 21 of DeveloperGuidelines/Tutorial/RESTCustomisation


Ignore:
Timestamp:
03/03/14 21:02:06 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Tutorial/RESTCustomisation

    v20 v21  
    161161    else:
    162162        # Easy to tell that they are not permitted to read in the shelter table:
    163         r.unauthorized()
     163
     164        # If the user is logged in, this shows an "Insufficient Permissions" error to the user and
     165        # redirects to a landing page. If the user is not logged in, it will redirect to the login
     166        # page (however, alternative handling is possible - and sometimes useful and more user-friendly):
     167        r.unauthorized()
     168
    164169}}}
    165170