* MM 65084 server-side (#33861) (#34006) Automatic Merge * Add ConsumeOnce method to store layers --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4b56488fcb
Коммит
375ce229f4
@@ -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)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user