X-Git-Url: http://git.veekun.com/zzz-spline-forum.git/blobdiff_plain/a81670b58f01338129d951f9bd4bfed5862a84aa..0bdf4461e31fce365e9fbc2e0784e634d2431a0e:/splinext/forum/templates/forum/lib.mako diff --git a/splinext/forum/templates/forum/lib.mako b/splinext/forum/templates/forum/lib.mako index 5be6251..8a1893d 100644 --- a/splinext/forum/templates/forum/lib.mako +++ b/splinext/forum/templates/forum/lib.mako @@ -26,7 +26,7 @@ <%def name="write_thread_form(forum)"> -% if c.user.can('create_forum_thread'): +% if forum.can_create_thread(c.user):

Create new thread

${h.form(url(controller='forum', action='write_thread', forum_id=forum.id))}
@@ -40,7 +40,7 @@ ${h.end_form()} <%def name="write_post_form(thread)"> -% if c.user.can('create_forum_post'): +% if thread.can_create_post(c.user):

Reply

${h.form(url(controller='forum', action='write', forum_id=thread.forum.id, thread_id=thread.id))}