app/models/mongoid_forums/permission.rb in mongoid-forums-0.0.2 vs app/models/mongoid_forums/permission.rb in mongoid-forums-0.0.3
- old
+ new
@@ -9,9 +9,10 @@
(topic.hidden && user.present? && topic.user_id == user.id) || !topic.hidden
end
if user.present?
allow "mongoid_forums/posts", [:new, :create]
+
allow "mongoid_forums/forums", [:new, :create]
allow "mongoid_forums/redirect", [:forum, :topic, :posts, :subscriptions]
allow "mongoid_forums/topics", [:my_subscriptions, :my_topics, :my_posts]