Skip to content

Commit

Permalink
Revert "Change conditional check for ckeditor."
Browse files Browse the repository at this point in the history
This reverts commit 12a9840.
  • Loading branch information
Jeff Dutil committed Mar 2, 2014
1 parent 12a9840 commit fe0c436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/supplier_ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def initialize(user)
can :create, Spree::Supplier
end

if Object.const_defined?("Ckeditor")
if defined?(Ckeditor::AttachmentFile) && defined?(Ckeditor::Picture)
can :access, :ckeditor

can :create, Ckeditor::AttachmentFile
Expand Down

0 comments on commit fe0c436

Please sign in to comment.