fixed date formatting
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user