mario-core 2.9.223-release → 2.9.224-release

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32350,7 +32350,9 @@ var TheLayout = function TheLayout(_ref) {
32350
32350
  try {
32351
32351
  var _temp6 = _catch(function () {
32352
32352
  return Promise.resolve(getInfo()).then(function (info) {
32353
- if (!info) {
32353
+ var _info$data, _info$data$roles;
32354
+
32355
+ if (!info || !(info !== null && info !== void 0 && (_info$data = info.data) !== null && _info$data !== void 0 && (_info$data$roles = _info$data.roles) !== null && _info$data$roles !== void 0 && _info$data$roles.includes("Admin"))) {
32354
32356
  resetAuth();
32355
32357
  }
32356
32358