Merge branch 'master' of github.com:web2py/web2py
This commit is contained in:
@@ -3199,7 +3199,7 @@ class Auth(object):
|
||||
"""
|
||||
if current.request.ajax:
|
||||
raise HTTP(403, 'ACCESS DENIED')
|
||||
return 'ACCESS DENIED'
|
||||
return self.messages.access_denied
|
||||
|
||||
def requires(self, condition, requires_login=True, otherwise=None):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user