Commit Graph

7 Commits (816ea2457184c6ed7c71de9c6181ee0d0eb3b3bf)

Author SHA1 Message Date
ytqh 816ea24571 Apply code formatting with ruff formatter
- Fixed formatting issues across 23 files
- Ensured all linting checks pass with uv run ruff check
- Code now follows consistent formatting standards
- No functional changes, only formatting improvements

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

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 9468a3ce4e fix 11 months ago
ytqh fa19a56660 Fix admin validation to check organization_members instead of tenant_account_joins
- Replace TenantAccountJoinRole check with OrganizationMember role check
- Use OrganizationRole.ADMIN to validate admin privileges
- Query organization_members table using account's current_organization_id
- This fixes the issue where super_admin@test.edu couldn't login despite having admin role

The previous validation was checking the wrong role system (tenant roles vs organization roles).
Now it correctly validates against the organization membership role.

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

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 0d5949ba46 Allow owner and admin roles to access admin API endpoints
- Modified admin API authentication to accept OWNER and ADMIN roles in addition to END_ADMIN
- This allows the same account to manage apps in Dify console and access admin statistics
- Fixes 401 errors when accessing admin platform with owner account

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

Co-Authored-By: Claude <noreply@anthropic.com>
11 months ago
ytqh 01c6681fa1 Merge remote-tracking branch 'dify/main' into main 1 year ago
ytqh 1d72b70d82 Enhance student management by adding organization filtering. Updated API endpoints to include account information and ensure students belong to the admin's organization. Modified EndUserService to support organization-based pagination. 1 year ago
ytqh 5c04969714 finish get user list 1 year ago