userWithInventory static method

bool userWithInventory()

Method for inventory privilage

Implementation

static bool userWithInventory() {
  String levelIdLogin = SingletonSotrage.secureStorageInterface
      .readSecureData(SecureStorageService.levelIdLogin);
  String storeLevelId = SingletonSotrage.secureStorageInterface
          .readSecureData("store_config_level_id") ??
      "13,12";
  List<String> storeLevelIds =
      storeLevelId.split(',').map((e) => e.trim()).toList();
  return storeLevelIds.contains(levelIdLogin);
}