module ContentTag
  class ChannelTagPolicy < ApplicationPolicy
    def index?
      allowed?
    end

    def show?
      allowed?
    end

    def new?
      allowed?
    end

    def create?
      allowed?
    end

    def edit?
      allowed?
    end

    def update?
      allowed?
    end

    def destroy?
      allowed?
    end

    def delete_channel_tag?
      allowed?
    end

    def add_channel_tag?
      allowed?
    end

    def allowed?
      user.permitted? BeefCake::Permission.for(:content_tag)
    end
  end
end
