enforce License.IsSeatCountEnforced if set (#31354)
* enforce License.IsSeatCountEnforced if set If a license sets `IsSeatCountEnforced`, enforce the user limit therein as a hard cap. Fixes: https://mattermost.atlassian.net/browse/CLD-9260 * remove duplicate tests * Improve user limit error messages and display - Add separate error messages for licensed vs unlicensed servers - Licensed servers: "Server exceeds maximum licensed users. ERROR_LICENSED_USERS_LIMITS" - Unlicensed servers: "Server exceeds safe user limit. ERROR_SAFETY_LIMITS_EXCEEDED" - Remove redundant "Contact administrator" text from activation errors shown to admins - Fix system console to display actual server error messages instead of generic "Failed to activate user" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Add license nil check and test coverage - Add license != nil check in GetServerLimits to prevent panic - Add test case to verify graceful handling of license being set to nil - Ensures fallback to hard-coded limits when license becomes nil Co-authored-by: lieut-data <lieut-data@users.noreply.github.com> * Fix user limits tests to expect license-specific error IDs Update test expectations to use the new license-specific error IDs: - app.user.update_active.license_user_limit.exceeded for licensed server user activation - api.user.create_user.license_user_limits.exceeded for licensed server user creation Also update frontend to show actual server error messages instead of generic ones in system console. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Remove redundant license nil test The test couldn't meaningfully verify nil license behavior since it relied on hard-coded constants that can't be modified in the test. Co-authored-by: lieut-data <lieut-data@users.noreply.github.com> * Fix whitespace issue in limits_test.go Remove unnecessary trailing newline to pass style checks. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * updated i18n * s/ERROR_LICENSED_USERS_LIMITS/ERROR_LICENSED_USERS_LIMIT_EXCEEDED/, expand warning log * Add 5% grace period for licensed user limits - Add calculateGraceLimit() function with 5% or +1 minimum grace - Apply grace period only to licensed servers with seat count enforcement - Handle zero user licenses by returning zero grace limit - Add comprehensive test coverage for grace period scenarios - Unlicensed servers maintain existing hard-coded limits without grace 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix TestCreateUserOrGuestSeatCountEnforcement to account for 5% grace period The test was failing because it expected user creation to fail at exactly the license limit, but the implementation now includes a 5% grace period before enforcement kicks in. Changes: - Update test cases to create users up to the grace limit (6 for a 5-user license) - Add comments explaining the grace period calculation - Both regular user and guest user creation tests now properly validate enforcement at the grace limit rather than the base license limit 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Fix TestUpdateActiveWithUserLimits to account for 5% grace period Update test expectations to match the new grace period behavior: - At base limit (100) but below grace limit (105): should succeed - At grace limit (105): should fail - Above grace limit (106): should fail This aligns the tests with the license enforcement implementation that includes a 5% grace period above the licensed user count. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: lieut-data <lieut-data@users.noreply.github.com> Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f89326574f
Коммит
0082e3e94d
@@ -7,27 +7,35 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/model"
|
||||
storemocks "github.com/mattermost/mattermost/server/v8/channels/store/storetest/mocks"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetServerLimits(t *testing.T) {
|
||||
mainHelper.Parallel(t)
|
||||
t.Run("base case", func(t *testing.T) {
|
||||
|
||||
t.Run("unlicensed server shows hard-coded limits", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
// InitBasic creates 3 users by default
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
require.Equal(t, int64(2500), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(5000), serverLimits.MaxUsersHardLimit)
|
||||
})
|
||||
|
||||
t.Run("user count should increase on creating new user and decrease on permanently deleting", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
@@ -50,6 +58,8 @@ func TestGetServerLimits(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
@@ -72,6 +82,8 @@ func TestGetServerLimits(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
@@ -95,6 +107,8 @@ func TestGetServerLimits(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
@@ -118,6 +132,8 @@ func TestGetServerLimits(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
@@ -136,16 +152,391 @@ func TestGetServerLimits(t *testing.T) {
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
})
|
||||
|
||||
t.Run("limits should be empty when there is a license", func(t *testing.T) {
|
||||
t.Run("licensed server without seat count enforcement shows no limits", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(model.NewTestLicense())
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = false
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
require.Equal(t, int64(0), serverLimits.ActiveUserCount)
|
||||
require.Greater(t, serverLimits.ActiveUserCount, int64(0))
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersHardLimit)
|
||||
})
|
||||
|
||||
t.Run("licensed server with seat count enforcement shows license limits with grace period", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 100
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
// InitBasic creates 3 users by default
|
||||
require.Equal(t, int64(3), serverLimits.ActiveUserCount)
|
||||
require.Equal(t, int64(100), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(105), serverLimits.MaxUsersHardLimit) // 100 + 5% = 105
|
||||
})
|
||||
|
||||
t.Run("licensed server with seat count enforcement but no Users feature shows no limits", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = nil
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
require.Greater(t, serverLimits.ActiveUserCount, int64(0))
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersHardLimit)
|
||||
})
|
||||
|
||||
t.Run("licensed server with seat count enforcement and zero Users shows zero limits", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 0
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
require.Greater(t, serverLimits.ActiveUserCount, int64(0))
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(0), serverLimits.MaxUsersHardLimit) // No grace for 0 users
|
||||
})
|
||||
}
|
||||
|
||||
func TestIsAtUserLimit(t *testing.T) {
|
||||
mainHelper.Parallel(t)
|
||||
|
||||
t.Run("unlicensed server", func(t *testing.T) {
|
||||
t.Run("below hard limit", func(t *testing.T) {
|
||||
th := SetupWithStoreMock(t)
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
mockUserStore := storemocks.UserStore{}
|
||||
mockUserStore.On("Count", mock.Anything).Return(int64(4000), nil) // Under hard limit of 5000
|
||||
mockStore := th.App.Srv().Store().(*storemocks.Store)
|
||||
mockStore.On("User").Return(&mockUserStore)
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("at hard limit", func(t *testing.T) {
|
||||
th := SetupWithStoreMock(t)
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
mockUserStore := storemocks.UserStore{}
|
||||
mockUserStore.On("Count", mock.Anything).Return(int64(5000), nil) // At hard limit of 5000
|
||||
mockStore := th.App.Srv().Store().(*storemocks.Store)
|
||||
mockStore.On("User").Return(&mockUserStore)
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.True(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("above hard limit", func(t *testing.T) {
|
||||
th := SetupWithStoreMock(t)
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
mockUserStore := storemocks.UserStore{}
|
||||
mockUserStore.On("Count", mock.Anything).Return(int64(6000), nil) // Over hard limit of 5000
|
||||
mockStore := th.App.Srv().Store().(*storemocks.Store)
|
||||
mockStore.On("User").Return(&mockUserStore)
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.True(t, atLimit)
|
||||
})
|
||||
})
|
||||
|
||||
t.Run("licensed server with seat count enforcement", func(t *testing.T) {
|
||||
t.Run("below base limit", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
// InitBasic creates 3 users, so we're below the base limit of 5 and grace limit of 6
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("at base limit but below grace limit", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
// Create 2 additional users to have 5 total (at base limit of 5, but below grace limit of 6)
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit) // Should be false due to grace period
|
||||
})
|
||||
|
||||
t.Run("at grace limit", func(t *testing.T) {
|
||||
th := SetupWithStoreMock(t)
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
mockUserStore := storemocks.UserStore{}
|
||||
mockUserStore.On("Count", mock.Anything).Return(int64(6), nil) // At grace limit of 6 (5 + 1)
|
||||
mockStore := th.App.Srv().Store().(*storemocks.Store)
|
||||
mockStore.On("User").Return(&mockUserStore)
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.True(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("above grace limit", func(t *testing.T) {
|
||||
th := SetupWithStoreMock(t)
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
mockUserStore := storemocks.UserStore{}
|
||||
mockUserStore.On("Count", mock.Anything).Return(int64(7), nil) // Above grace limit of 6
|
||||
mockStore := th.App.Srv().Store().(*storemocks.Store)
|
||||
mockStore.On("User").Return(&mockUserStore)
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.True(t, atLimit)
|
||||
})
|
||||
})
|
||||
|
||||
t.Run("licensed server without seat count enforcement", func(t *testing.T) {
|
||||
t.Run("below unenforced limit", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = false
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
// Create 2 additional users to have 3 total (below limit of 5)
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("at unenforced limit", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = false
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
// Create 4 additional users to have 5 total (at limit of 5)
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit)
|
||||
})
|
||||
|
||||
t.Run("above unenforced limit", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
userLimit := 5
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = false
|
||||
license.Features.Users = &userLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
// Create 5 additional users to have 6 total (above limit of 5)
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
th.CreateUser()
|
||||
|
||||
atLimit, appErr := th.App.isAtUserLimit()
|
||||
require.Nil(t, appErr)
|
||||
require.False(t, atLimit)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
func TestGracePeriodBehavior(t *testing.T) {
|
||||
mainHelper.Parallel(t)
|
||||
|
||||
t.Run("grace period examples", func(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
licenseUserLimit int
|
||||
expectedBaseLimit int64
|
||||
expectedGraceLimit int64
|
||||
}{
|
||||
{
|
||||
name: "zero license users gets zero grace",
|
||||
licenseUserLimit: 0,
|
||||
expectedBaseLimit: 0,
|
||||
expectedGraceLimit: 0, // Special case: 0 users = 0 grace limit
|
||||
},
|
||||
{
|
||||
name: "small license uses floor (10 users)",
|
||||
licenseUserLimit: 10,
|
||||
expectedBaseLimit: 10,
|
||||
expectedGraceLimit: 11, // 10 + max(5%, 1) = 10 + 1
|
||||
},
|
||||
{
|
||||
name: "medium license uses percentage (100 users)",
|
||||
licenseUserLimit: 100,
|
||||
expectedBaseLimit: 100,
|
||||
expectedGraceLimit: 105, // 100 + max(5%, 1) = 100 + 5
|
||||
},
|
||||
{
|
||||
name: "large license uses percentage (1000 users)",
|
||||
licenseUserLimit: 1000,
|
||||
expectedBaseLimit: 1000,
|
||||
expectedGraceLimit: 1050, // 1000 + max(5%, 1) = 1000 + 50
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
license := model.NewTestLicense("")
|
||||
license.IsSeatCountEnforced = true
|
||||
license.Features.Users = &tt.licenseUserLimit
|
||||
th.App.Srv().SetLicense(license)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
require.Equal(t, tt.expectedBaseLimit, serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, tt.expectedGraceLimit, serverLimits.MaxUsersHardLimit)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
t.Run("unlicensed server has no grace period", func(t *testing.T) {
|
||||
th := Setup(t).InitBasic()
|
||||
defer th.TearDown()
|
||||
|
||||
th.App.Srv().SetLicense(nil)
|
||||
|
||||
serverLimits, appErr := th.App.GetServerLimits()
|
||||
require.Nil(t, appErr)
|
||||
|
||||
// Unlicensed servers should not get grace period
|
||||
require.Equal(t, int64(2500), serverLimits.MaxUsersLimit)
|
||||
require.Equal(t, int64(5000), serverLimits.MaxUsersHardLimit) // No grace, stays at 5000
|
||||
})
|
||||
}
|
||||
|
||||
func TestCalculateGraceLimit(t *testing.T) {
|
||||
mainHelper.Parallel(t)
|
||||
|
||||
tests := []struct {
|
||||
name string
|
||||
baseLimit int64
|
||||
expected int64
|
||||
}{
|
||||
{
|
||||
name: "zero base limit",
|
||||
baseLimit: 0,
|
||||
expected: 0, // Special case: 0 users = 0 grace limit
|
||||
},
|
||||
{
|
||||
name: "one user base limit",
|
||||
baseLimit: 1,
|
||||
expected: 2, // max(1 * 1.05, 1 + 1) = max(1.05 -> 1, 2) = 2
|
||||
},
|
||||
{
|
||||
name: "small base limit where floor applies",
|
||||
baseLimit: 10,
|
||||
expected: 11, // max(10 * 1.05, 10 + 1) = max(10.5 -> 10, 11) = 11
|
||||
},
|
||||
{
|
||||
name: "small base limit where percentage applies",
|
||||
baseLimit: 20,
|
||||
expected: 21, // max(20 * 1.05, 20 + 1) = max(21, 21) = 21
|
||||
},
|
||||
{
|
||||
name: "medium base limit where percentage applies",
|
||||
baseLimit: 100,
|
||||
expected: 105, // max(100 * 1.05, 100 + 1) = max(105, 101) = 105
|
||||
},
|
||||
{
|
||||
name: "large base limit where percentage applies",
|
||||
baseLimit: 1000,
|
||||
expected: 1050, // max(1000 * 1.05, 1000 + 1) = max(1050, 1001) = 1050
|
||||
},
|
||||
{
|
||||
name: "very large base limit",
|
||||
baseLimit: 5000,
|
||||
expected: 5250, // max(5000 * 1.05, 5000 + 1) = max(5250, 5001) = 5250
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
result := calculateGraceLimit(tt.baseLimit)
|
||||
require.Equal(t, tt.expected, result, "calculateGraceLimit(%d) = %d, expected %d", tt.baseLimit, result, tt.expected)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user