class PartnerPlanPolicy < ApplicationPolicy def index? user.is_admin? end def create? user.is_admin? end def update? user.is_admin? end def destroy? user.is_admin? and record.destroyable? end end