v0.12.45 fixed Guardian only feature

This commit is contained in:
2026-03-30 19:07:15 -04:00
parent 1a85d3930e
commit d0f10c4d7e
4 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "rosterchirp-backend", "name": "rosterchirp-backend",
"version": "0.12.44", "version": "0.12.45",
"description": "RosterChirp backend server", "description": "RosterChirp backend server",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@@ -13,7 +13,7 @@
# ───────────────────────────────────────────────────────────── # ─────────────────────────────────────────────────────────────
set -euo pipefail set -euo pipefail
VERSION="${1:-0.12.44}" VERSION="${1:-0.12.45}"
ACTION="${2:-}" ACTION="${2:-}"
REGISTRY="${REGISTRY:-}" REGISTRY="${REGISTRY:-}"
IMAGE_NAME="rosterchirp" IMAGE_NAME="rosterchirp"

View File

@@ -1,6 +1,6 @@
{ {
"name": "rosterchirp-frontend", "name": "rosterchirp-frontend",
"version": "0.12.44", "version": "0.12.45",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -64,13 +64,13 @@ export default function ProfileModal({ onClose }) {
// Load login type + check if user is in guardians group // Load login type + check if user is in guardians group
useEffect(() => { useEffect(() => {
Promise.all([api.getSettings(), api.getMyUserGroups()]).then(([{ settings: s }, { groups }]) => { Promise.all([api.getSettings(), api.getMyUserGroups()]).then(([{ settings: s }, { userGroups }]) => {
const lt = s.feature_login_type || 'all_ages'; const lt = s.feature_login_type || 'all_ages';
const gid = parseInt(s.feature_guardians_group_id); const gid = parseInt(s.feature_guardians_group_id);
setLoginType(lt); setLoginType(lt);
setGuardiansGroupId(gid || null); setGuardiansGroupId(gid || null);
if (lt !== 'all_ages' && gid) { if (lt !== 'all_ages' && gid) {
const inGroup = (groups || []).some(g => g.id === gid); const inGroup = (userGroups || []).some(g => g.id === gid);
setShowAddChild(inGroup); setShowAddChild(inGroup);
} }
}).catch(() => {}); }).catch(() => {});