* MM 65084 server-side (#33861) (#34006)

Automatic Merge

* Add ConsumeOnce method to store layers

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
JG Heithcock
2025-10-06 15:20:08 -07:00
коммит произвёл GitHub
родитель 4b56488fcb
Коммит 375ce229f4
11 изменённых файлов: 309 добавлений и 5 удалений

Просмотреть файл

@@ -70,6 +70,9 @@ type FeatureFlags struct {
AttributeBasedAccessControl bool
ContentFlagging bool
// Enable mobile SSO SAML code-exchange flow (no tokens in deep links)
MobileSSOCodeExchange bool
}
func (f *FeatureFlags) SetDefaults() {
@@ -99,6 +102,7 @@ func (f *FeatureFlags) SetDefaults() {
f.CustomProfileAttributes = true
f.AttributeBasedAccessControl = true
f.ContentFlagging = false
f.MobileSSOCodeExchange = true
}
// ToMap returns the feature flags as a map[string]string

Просмотреть файл

@@ -41,3 +41,7 @@ func (t *Token) IsValid() *AppError {
return nil
}
func (t *Token) IsExpired() bool {
return GetMillis() > (t.CreateAt + MaxTokenExipryTime)
}