X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/blobdiff_plain/dfc83133694768eb466d4a55bbb2c501ac508e92..0bdf4461e31fce365e9fbc2e0784e634d2431a0e:/splinext/forum/controllers/forum.py diff --git a/splinext/forum/controllers/forum.py b/splinext/forum/controllers/forum.py index b5bacab..342e8e6 100644 --- a/splinext/forum/controllers/forum.py +++ b/splinext/forum/controllers/forum.py @@ -54,7 +54,7 @@ class ForumController(BaseController): def write_thread(self, forum_id): """Provides a form for posting a new thread.""" - if not c.user.can('create_forum_thread'): + if not c.user.can('forum:create-thread'): abort(403) try: @@ -99,7 +99,7 @@ class ForumController(BaseController): def write(self, forum_id, thread_id): """Provides a form for posting to a thread.""" - if not c.user.can('create_forum_post'): + if not c.user.can('forum:create-post'): abort(403) try: