v0.12.46 host bug fixes and password reset feature,
This commit is contained in:
@@ -69,7 +69,10 @@ export default function ProfileModal({ onClose }) {
|
||||
const gid = parseInt(s.feature_guardians_group_id);
|
||||
setLoginType(lt);
|
||||
setGuardiansGroupId(gid || null);
|
||||
if (lt !== 'all_ages' && gid) {
|
||||
if (lt === 'guardian_only') {
|
||||
// In guardian_only mode all authenticated users are guardians — always show Add Child
|
||||
setShowAddChild(true);
|
||||
} else if (lt === 'mixed_age' && gid) {
|
||||
const inGroup = (userGroups || []).some(g => g.id === gid);
|
||||
setShowAddChild(inGroup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user