app/controllers/ops_controller/ops_rbac.rb
# Validate some of the role fields
Validate some of the role fields
Validate some of the role fields
def rbac_role_validate?
    valid = true
    if @edit[:new][:features].empty?
      add_flash(_("At least one Product Feature must be selected"), :error)
      valid = false
    end
    valid
  end
def rbac_role_validate? valid = true if @edit [ :new ] [ :features ] . empty? add_flash ( _ ( "At least one Product Feature must be selected" ) , :error ) valid = false end valid end
Validate some of the role fields
Validate some of the role fields