Update tools.py
Internationalize 'ACCESS DENIED' message.
This commit is contained in:
1 parent
0d24d1e0d2
commit
359bae6d30
1 file changed
+1
-1
+1
-1
@@ -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