upskill-event-manager/.claude/settings.local.json
Ben 8724853fdb fix: resolve master trainer authentication issue preventing page access
- Fixed capability check in check_master_dashboard_auth function
- Changed from custom capabilities to role-based check: hvac_master_trainer role
- Root cause: function was checking for capabilities that hvac_master_trainer role didn't have
- This was causing HTTP 302 redirects to login page instead of loading dashboard content
- Master trainer pages now properly authenticate users with hvac_master_trainer role

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 12:50:39 -03:00

126 lines
No EOL
6.3 KiB
JSON

{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"permissions": {
"allow": [
"Bash(find:*)",
"Bash(chmod:*)",
"Bash(ls:*)",
"Bash(cat:*)",
"Bash(grep:*)",
"Bash(rg:*)",
"Bash(sed:*)",
"Bash(touch:*)",
"Bash(mkdir:*)",
"Bash(cp:*)",
"Bash(mv:*)",
"Bash(rm:*)",
"Bash(echo:*)",
"Bash(source:*)",
"Bash(curl:*)",
"Bash(ssh:*)",
"Bash(sshpass:*)",
"Bash(rsync:*)",
"Bash(zip:*)",
"Bash(unzip:*)",
"Bash(tar:*)",
"Bash(node:*)",
"Bash(npm:*)",
"Bash(npx:*)",
"Bash(php:*)",
"Bash(composer:*)",
"Bash(mysql:*)",
"Bash(wp:*)",
"Bash(wp-cli.phar:*)",
"Bash(python3:*)",
"Bash(expect:*)",
"Bash(timeout:*)",
"Bash(pkill:*)",
"Bash(xvfb-run:*)",
"Bash(git:*)",
"Bash(scripts/*)",
"Bash(bin/*)",
"Bash(./scripts/*)",
"Bash(./bin/*)",
"Bash(UPSKILL_STAGING_URL=*)",
"Bash(STAGING_ADMIN_USER=*)",
"Bash(DISPLAY=*)",
"WebFetch(domain:upskill-staging.measurequick.com)",
"WebFetch(domain:upskillhvac.com)",
"WebFetch(domain:theeventscalendar.com)",
"WebFetch(domain:docs.theeventscalendar.com)",
"WebFetch(domain:wpastra.com)",
"WebFetch(domain:developers.wpastra.com)",
"WebFetch(domain:intercom.help)",
"WebFetch(domain:www.zoho.com)",
"mcp__zen__secaudit",
"mcp__zen__codereview",
"mcp__zen__debug",
"mcp__zen__refactor",
"mcp__zen__challenge",
"mcp__zen__consensus",
"mcp__zen__listmodels",
"mcp__zen__analyze",
"mcp__zen__precommit",
"mcp__zen-mcp__challenge",
"mcp__zen-mcp__thinkdeep",
"mcp__zen-mcp__debug",
"mcp__zen-mcp__planner",
"mcp__zen-mcp__chat",
"mcp__zen-mcp__testgen",
"mcp__sequential-thinking__sequentialthinking",
"mcp__sequential-thinking__sequentialthinking_tools",
"mcp__playwright__browser_navigate",
"mcp__playwright__browser_type",
"mcp__playwright__browser_click",
"mcp__playwright__browser_evaluate",
"mcp__playwright__browser_snapshot",
"mcp__playwright__browser_close",
"mcp__playwright__browser_resize",
"mcp__playwright__browser_take_screenshot",
"mcp__playwright__browser_install",
"mcp__playwright__browser_console_messages",
"mcp__playwright__browser_wait_for",
"mcp__git__git_diff",
"mcp__git__git_status",
"mcp__git__git_add",
"mcp__git__git_commit",
"mcp__git__git_set_working_dir",
"mcp__fetch__fetch",
"mcp__playwright__browser_press_key",
"Bash(bin/seed-comprehensive-events.sh:*)",
"Bash(scripts/deploy.sh:*)",
"Bash(DISPLAY=:0 node test-tec-v5-validated.js)",
"Bash(DISPLAY=:0 node test-final-edit-workflow.js)",
"Bash(DISPLAY=:0 node test-simple-tec-access.js)",
"Bash(DISPLAY=:0 node test-custom-event-edit.js)",
"mcp__zen-mcp__codereview",
"mcp__zen-mcp__consensus",
"Bash(DISPLAY=:0 node test-custom-edit-with-login.js)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-custom-edit-with-login.js)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-template-debug.js)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-login-and-edit.js)",
"Bash(export DISPLAY=:0)",
"Bash(export XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com post get 6177 --field=post_name,post_parent,post_type)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-direct-access.js)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-create-and-edit-event.js)",
"Bash(bin/pre-deployment-check.sh:*)",
"Bash(UPSKILL_PROD_URL=\"https://upskillhvac.com\" wp-cli.phar --url=$UPSKILL_PROD_URL --ssh=benr@146.190.76.204 post list --post_type=page --search=\"Edit Event\" --fields=ID,post_title,post_status)",
"Bash(scripts/fix-production-issues.sh:*)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp-cli.phar --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com user create devAdmin dev.admin@upskillhvac.com --role=hvac_trainer --user_pass=DevAdmin2025!)",
"mcp__zen-mcp__analyze",
"mcp__zen-mcp__secaudit",
"WebSearch",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp-cli.phar --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com post list --post_type=page --search=dashboard --fields=ID,post_title,post_name,post_status)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp-cli.phar --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com user list --role=hvac_master_trainer --fields=ID,user_login,user_email,display_name)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" STAGING_ADMIN_USER=root wp-cli.phar --path=/var/www/html --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com user create devMaster dev.master@upskillhvac.com --role=hvac_master_trainer --user_pass=DevMaster2025! --display_name=\"Dev Master Trainer\")",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-master-trainer-pages.js)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-master-trainer-verification.js)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp-cli.phar --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com post list --post_type=page --search=\"master-trainer\" --fields=ID,post_title,post_name,post_status)",
"Bash(UPSKILL_STAGING_URL=\"https://upskill-staging.measurequick.com\" wp --url=$UPSKILL_STAGING_URL --ssh=root@upskill-staging.measurequick.com post list --post_type=page --search=\"master\" --fields=ID,post_title,post_name,post_status)",
"Bash(DISPLAY=:0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.90WDB3 node test-master-trainer-debug.js)"
],
"deny": []
},
"enableAllProjectMcpServers": true
}