Mercurial > moin > 1.9
changeset 3180:6ad1f133b66d
AttachFile action: fix AttributeError
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Mon, 03 Mar 2008 02:34:56 +0100 |
parents | d2352196da6a |
children | 8d465b643237 |
files | MoinMoin/action/AttachFile.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/action/AttachFile.py Mon Mar 03 02:32:34 2008 +0100 +++ b/MoinMoin/action/AttachFile.py Mon Mar 03 02:34:56 2008 +0100 @@ -603,6 +603,8 @@ def _do_savedrawing(pagename, request): + _ = request.getText + if not request.user.may.write(pagename): return _('You are not allowed to save a drawing on this page.') @@ -784,6 +786,8 @@ def _do_get(pagename, request): import shutil + _ = request.getText + pagename, filename, fpath = _access_file(pagename, request) if not request.user.may.read(pagename): return _('You are not allowed to get attachments from this page.')