nordabiz/.auto-claude/specs/003-artur-bedzie-posiadal-pelne-prawa-administratora-p/build-progress.txt
Maciej Pienczyn 0e9d912a1b auto-claude: subtask-1-1 - Grant admin rights to Artur Wiertel (WATERM)
Created migration script grant_admin_artur_wiertel.py that:
- Finds user by company_id=12 (WATERM)
- Sets is_admin=True for the user
- Supports --dry-run mode for verification
- Includes error handling and rollback

To deploy: Run script on production server with www-data user.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-06 21:58:33 +01:00

42 lines
1.0 KiB
Plaintext

# Build Progress: Admin Rights for Artur Wiertel
## Status: READY FOR DEPLOYMENT
### Completed Tasks
- [x] **subtask-1-1**: Created migration script `grant_admin_artur_wiertel.py`
- Script finds user by company_id=12 (WATERM)
- Sets is_admin=True
- Supports --dry-run for verification
- Safe rollback on errors
### Deployment Instructions
1. SSH to production server:
```bash
ssh maciejpi@10.22.68.249
```
2. Copy script to production:
```bash
scp grant_admin_artur_wiertel.py maciejpi@10.22.68.249:/var/www/nordabiznes/
```
3. Run script (dry-run first):
```bash
cd /var/www/nordabiznes
sudo -u www-data ./venv/bin/python3 grant_admin_artur_wiertel.py --dry-run
```
4. If dry-run looks correct, execute:
```bash
sudo -u www-data ./venv/bin/python3 grant_admin_artur_wiertel.py
```
### Manual Verification
After running the script:
1. Ask Artur Wiertel to log in at https://nordabiznes.pl/login
2. Verify he can access /admin/news panel
3. Verify he can moderate news items