fixed date formatting

This commit is contained in:
Mike Kelley
2011-08-27 12:56:36 -06:00
parent 1c65d376de
commit 5a77a3a681
9 changed files with 20 additions and 16 deletions

View File

@@ -11,10 +11,10 @@ class Ability
can :read, Topic, :forum => { :state => true, :category => { :state => true } }
can :read, Post, :topic => { :forum => { :state => true, :category => { :state => true } } }
can :update, Post, :user_id => user.id
can :destroy, [Topic,Post], :user_id => user.id
can :update, Post, :user_id => user.id, :topic => { :locked => false }
can :destroy, [Topic,Post], :user_id => user.id, :topic => { :locked => false }
can :create, Post unless user.new_record?
can :create, Post, :topic => { :locked => false } unless user.new_record?
can :create, Topic unless user.new_record?
end
end