mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
An unlicensed server hard-capped at 250 users (maxUsersHardLimit, no grace period) and blocked user creation and reactivation at that line. That is a commercial seat limit, not a safety limit, and a standalone deploy cannot carry it. GetServerLimits and its two enforcement sites in user.go are gone. Also gone: the cloud subsystem that talked to customers.mattermost.com and portal.internal.prod.cloud.mattermost.com -- billing, subscriptions, invoices, trial license requests, daily seat reporting, IP filtering, and the post/file history caps that expressed plan tiers. Two plugin API methods stay as stubs. GetCloudLimits and RequestTrialLicense are declared in plugin.API, and plugin binaries are compiled against those signatures; removing them from the interface would break a plugin that references either. They report no limits and no trial. The post and file accessibility filters stay. They are generic "hide everything before time T" machinery that reads a stored timestamp, and with nothing writing that timestamp they return at their first check. Rewriting 25 read paths to delete an unreachable branch buys nothing. Co-authored-by: Hanzo Dev <[email protected]>
28 lines
816 B
Go
28 lines
816 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
// The plugin API exposes GetCloudLimits and the OnCloudLimitsUpdated hook, and
|
|
// third-party plugins are compiled against those signatures. The billing
|
|
// product they described is gone; the types stay so the RPC surface a plugin
|
|
// binary was built against still resolves. This server reports no limits.
|
|
|
|
type FilesLimits struct {
|
|
TotalStorage *int64 `json:"total_storage"`
|
|
}
|
|
|
|
type MessagesLimits struct {
|
|
History *int `json:"history"`
|
|
}
|
|
|
|
type TeamsLimits struct {
|
|
Active *int `json:"active"`
|
|
}
|
|
|
|
type ProductLimits struct {
|
|
Files *FilesLimits `json:"files,omitempty"`
|
|
Messages *MessagesLimits `json:"messages,omitempty"`
|
|
Teams *TeamsLimits `json:"teams,omitempty"`
|
|
}
|