From 359bae6d30d959d19b614b079a590092bb116172 Mon Sep 17 00:00:00 2001 From: mcamel Date: Thu, 27 Feb 2014 12:09:34 +0100 Subject: [PATCH] Update tools.py Internationalize 'ACCESS DENIED' message. --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 355d3678..3019230c 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -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): """