work on forum post controller

This commit is contained in:
albert
2011-01-12 18:21:39 -05:00
parent d6f1d09da0
commit 523cc9fe02
6 changed files with 121 additions and 23 deletions

View File

@@ -43,11 +43,11 @@ class ForumTopicsController < ApplicationController
@forum_topic.destroy
respond_with(@forum_topic)
end
private
def check_privilege(forum_topic)
if !forum_topic.editable_by?(CurrentUser.user)
raise User::PrivilegeError
end
private
def check_privilege(forum_topic)
if !forum_topic.editable_by?(CurrentUser.user)
raise User::PrivilegeError
end
end
end