summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-04-17 15:08:56 -0400
committerChristopher Speller <crspeller@gmail.com>2017-04-17 15:08:56 -0400
commit92d8fa4aa8af170d0018baed94a8787d06297e44 (patch)
treedc5000a3584952c797c03bf4331282a5e1536848 /model
parent742bab6429aeb1b581275da3c06af99fe293baab (diff)
parent30974533941e73f102505d07badf538cfdbbf3fc (diff)
downloadchat-92d8fa4aa8af170d0018baed94a8787d06297e44.tar.gz
chat-92d8fa4aa8af170d0018baed94a8787d06297e44.tar.bz2
chat-92d8fa4aa8af170d0018baed94a8787d06297e44.zip
Merge branch 'release-3.8'
Diffstat (limited to 'model')
-rw-r--r--model/authorization.go1
-rw-r--r--model/config.go10
2 files changed, 5 insertions, 6 deletions
diff --git a/model/authorization.go b/model/authorization.go
index ef88b730a..458ed1bdb 100644
--- a/model/authorization.go
+++ b/model/authorization.go
@@ -369,7 +369,6 @@ func InitalizeRoles() {
PERMISSION_CREATE_DIRECT_CHANNEL.Id,
PERMISSION_CREATE_GROUP_CHANNEL.Id,
PERMISSION_PERMANENT_DELETE_USER.Id,
- PERMISSION_MANAGE_OAUTH.Id,
},
}
BuiltInRoles[ROLE_SYSTEM_USER.Id] = ROLE_SYSTEM_USER
diff --git a/model/config.go b/model/config.go
index 206f5d70e..303d7bb75 100644
--- a/model/config.go
+++ b/model/config.go
@@ -699,7 +699,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.TermsOfServiceLink) {
- o.SupportSettings.TermsOfServiceLink = nil
+ *o.SupportSettings.TermsOfServiceLink = ""
}
if o.SupportSettings.TermsOfServiceLink == nil {
@@ -708,7 +708,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.PrivacyPolicyLink) {
- o.SupportSettings.PrivacyPolicyLink = nil
+ *o.SupportSettings.PrivacyPolicyLink = ""
}
if o.SupportSettings.PrivacyPolicyLink == nil {
@@ -717,7 +717,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.AboutLink) {
- o.SupportSettings.AboutLink = nil
+ *o.SupportSettings.AboutLink = ""
}
if o.SupportSettings.AboutLink == nil {
@@ -726,7 +726,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.HelpLink) {
- o.SupportSettings.HelpLink = nil
+ *o.SupportSettings.HelpLink = ""
}
if o.SupportSettings.HelpLink == nil {
@@ -735,7 +735,7 @@ func (o *Config) SetDefaults() {
}
if !IsSafeLink(o.SupportSettings.ReportAProblemLink) {
- o.SupportSettings.ReportAProblemLink = nil
+ *o.SupportSettings.ReportAProblemLink = ""
}
if o.SupportSettings.ReportAProblemLink == nil {