changeset 4216:84cdf829d881

Remove deprecated call to request.getAvailableActions
author Florian Krupicka <florian.krupicka@googlemail.com>
date Mon, 14 Jul 2008 11:05:19 +0200
parents be492cb075c4
children b231877df090
files MoinMoin/wsgiapp.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wsgiapp.py	Fri Jul 11 23:19:18 2008 +0200
+++ b/MoinMoin/wsgiapp.py	Mon Jul 14 11:05:19 2008 +0200
@@ -154,7 +154,8 @@
                         'action_name': wikiutil.escape(action_name), }
 
             # Disallow non available actions
-            elif action_name[0].isupper() and not action_name in request.getAvailableActions(request.page):
+            elif action_name[0].isupper() and not action_name in \
+                    get_available_actions(request.cfg, request.page, request.user):
                 msg = _("You are not allowed to do %(action_name)s on this page.") % {
                         'action_name': wikiutil.escape(action_name), }
                 if not request.user.valid: