Fix superadmin access control and modal aria-hidden warning

- Implement role normalization system to handle role name variants (superadmin, super_admin, administrator)
- Add session persistence configuration (PERMANENT_SESSION_LIFETIME = 7 days)
- Add modules JSON column to users database table schema
- Update setup script with backward compatibility check for modules column
- Fix user_management_simple route to properly fetch and display modules
- Resolve modal aria-hidden accessibility warning by managing focus on close button
- All changes deployed and tested successfully
This commit is contained in:
Quality App Developer
2025-12-26 20:08:54 +02:00
parent 8f6f27722a
commit d09bf34e85
11 changed files with 77 additions and 8719 deletions

View File

@@ -157,28 +157,7 @@ initialize_database() {
fi
}
# ============================================================================
# DATABASE SEEDING
# ============================================================================
seed_database() {
if [ "${SEED_DB:-false}" = "true" ]; then
log_info "Seeding database with initial data..."
if python3 /app/seed.py; then
log_success "Database seeded successfully"
else
local exit_code=$?
if [ "${IGNORE_SEED_ERRORS:-false}" = "true" ]; then
log_warning "Database seeding completed with warnings (exit code: $exit_code)"
else
log_error "Database seeding failed (exit code: $exit_code)"
exit 1
fi
fi
else
log_info "Skipping database seeding (SEED_DB=${SEED_DB:-false})"
fi
}
# ============================================================================
# HEALTH CHECK
@@ -229,7 +208,6 @@ main() {
wait_for_database
create_database_config
initialize_database
seed_database
run_health_check
echo "============================================================================"