class Ability
  include Hydra::Ability
  include Sufia::Ability

  def featured_work_abilities
    can [:create, :destroy, :update], FeaturedWork if user_groups.include? 'umg/up.dlt.scholarsphere-admin-viewers'
  end

  def editor_abilities
    if user_groups.include? 'umg/up.dlt.scholarsphere-admin-viewers'
      can :create, TinymceAsset
      can :update, ContentBlock
    end
  end
end

class Ability
  include Hydra::Ability
  include Sufia::Ability

  def featured_work_abilities
    can [:create, :destroy, :update], FeaturedWork if admin_user?
  end

  def editor_abilities
    if admin_user?
      can :create, TinymceAsset
      can [:create, :update], ContentBlock
    end
    can :read, ContentBlock
  end

  private

    def admin_user?
      user_groups.include? 'umg/up.dlt.scholarsphere-admin-viewers'
    end
end

Add abilities added to Sufia but missed in ScholarSphere due to overriding at the method level. (PR also put in to Sufia so that adopters no longer need to override methods like this.)
Add abilities added to Sufia but missed in ScholarSphere due to overriding at the method level. (PR also put in to Sufia so that adopters no longer need to override methods like this.)
