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",
"version": "0.12.44",
"version": "0.12.45",
"description": "RosterChirp backend server",
"main": "src/index.js",
"scripts": {

View File

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

View File

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

View File

@@ -64,13 +64,13 @@ export default function ProfileModal({ onClose }) {
// Load login type + check if user is in guardians group
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 gid = parseInt(s.feature_guardians_group_id);
setLoginType(lt);
setGuardiansGroupId(gid || null);
if (lt !== 'all_ages' && gid) {
const inGroup = (groups || []).some(g => g.id === gid);
const inGroup = (userGroups || []).some(g => g.id === gid);
setShowAddChild(inGroup);
}
}).catch(() => {});