Hi there, Following code works in web2py 1.98.2. That is, to allow registered users, as well as the system administrator (who always access the system from localhost), to access data.
@auth.requires(request.client=='127.0.0.1' or auth.is_logged_in()) def secret(): return {"": "some cool stuff"} The snippet does not work in web2py 1.99.3. Looks like web2py 1.99.x enforces user login in auth.requires(...). Should it be? Any feedback is welcome. Regards, Ray (a.k.a. Iceberg)