package com.tomhempel.rbarometer.ui

import android.content.Context
import com.tomhempel.rbarometer.network.QuestionnaireCache

object DevSettingsAccess {
    const val CLIENT_CODE = "DEVELOPER-SETTINGS"

    fun isAssigned(context: Context): Boolean =
        QuestionnaireCache.getAssignedClients(context)
            .any { it.equals(CLIENT_CODE, ignoreCase = true) }
}
