The admin CLI requires the user to be whitelisted via their numeric user_id in museum.yaml's internal.admin field. The helper script ente-upgrade-subscription now: 1. Looks up user_id from PostgreSQL by email 2. Adds internal.admin to museum.yaml if not present 3. Restarts museum 4. Runs the subscription upgrade This replaces the previous approach that incorrectly assumed the first user was auto-admin (that fallback only works when internal section is completely absent AND was unreliable).
2.1 KiB
2.1 KiB