feat: reduce Community Edition user limit from 50 to 10
Reduces the hardcoded max users for Community Edition from 50 to 10. Changes: - Backend: MAX_USERS_COMMUNITY constant (enforcement) - Frontend: Display messages on users and tenants pages - README: Documentation update Ref: GT-Edge-AI-Internal/GT-2.0#289 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,7 @@ Embedding model is installed by default.
|
|||||||
|
|
||||||
| Feature | Community (Free) | Enterprise (Paid) |
|
| Feature | Community (Free) | Enterprise (Paid) |
|
||||||
|---------|-----------|------------|
|
|---------|-----------|------------|
|
||||||
| **Users** | Up to 50 users | User licenses per seat |
|
| **Users** | Up to 10 users | User licenses per seat |
|
||||||
| **Support** | GitHub Issues | Dedicated human support |
|
| **Support** | GitHub Issues | Dedicated human support |
|
||||||
| **Billing & Reports** | Not included | Full financial tracking |
|
| **Billing & Reports** | Not included | Full financial tracking |
|
||||||
| **Pro Agents** | Not included | Pre-built professional agents |
|
| **Pro Agents** | Not included | Pre-built professional agents |
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ router = APIRouter(prefix="/users", tags=["users"])
|
|||||||
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
|
||||||
|
|
||||||
# GT AI OS Community Edition - Hardcoded user limit
|
# GT AI OS Community Edition - Hardcoded user limit
|
||||||
MAX_USERS_COMMUNITY = 50
|
MAX_USERS_COMMUNITY = 10
|
||||||
|
|
||||||
|
|
||||||
def get_default_capabilities(user_type: str) -> List[Dict[str, Any]]:
|
def get_default_capabilities(user_type: str) -> List[Dict[str, Any]]:
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ export default function TenantsPage() {
|
|||||||
Manage your tenant configuration
|
Manage your tenant configuration
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-amber-600 mt-1">
|
<p className="text-sm text-amber-600 mt-1">
|
||||||
GT AI OS Community Edition: Limited to 50 users per tenant
|
GT AI OS Community Edition: Limited to 10 users per tenant
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -210,7 +210,7 @@ export default function TenantsPage() {
|
|||||||
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
|
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm font-medium text-muted-foreground">Users</p>
|
<p className="text-sm font-medium text-muted-foreground">Users</p>
|
||||||
<p className="text-2xl font-bold">{tenant.user_count} <span className="text-sm font-normal text-muted-foreground">/ 50</span></p>
|
<p className="text-2xl font-bold">{tenant.user_count} <span className="text-sm font-normal text-muted-foreground">/ 10</span></p>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p className="text-sm font-medium text-muted-foreground">Domain</p>
|
<p className="text-sm font-medium text-muted-foreground">Domain</p>
|
||||||
|
|||||||
@@ -329,7 +329,7 @@ export default function UsersPage() {
|
|||||||
Manage users and access permissions
|
Manage users and access permissions
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm text-amber-600 mt-1">
|
<p className="text-sm text-amber-600 mt-1">
|
||||||
GT AI OS Community Edition: Limited to 50 users
|
GT AI OS Community Edition: Limited to 10 users
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex space-x-2">
|
<div className="flex space-x-2">
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default function TenantsPage() {
|
|||||||
domain: 'betatest',
|
domain: 'betatest',
|
||||||
template: 'development',
|
template: 'development',
|
||||||
status: 'suspended',
|
status: 'suspended',
|
||||||
max_users: 50,
|
max_users: 10,
|
||||||
current_users: 12,
|
current_users: 12,
|
||||||
namespace: 'gt-tenant-betatest',
|
namespace: 'gt-tenant-betatest',
|
||||||
resource_count: 5,
|
resource_count: 5,
|
||||||
|
|||||||
Reference in New Issue
Block a user