Add flag to optionally enable Q&A (#2878)

CORL-956
This commit is contained in:
Nick Funk
2020-03-10 20:22:26 +00:00
committed by GitHub
parent 45b778c522
commit 6f1014289b
6 changed files with 31 additions and 44 deletions
+6 -1
View File
@@ -341,6 +341,11 @@ enum FEATURE_FLAG {
toxic comments.
"""
DISABLE_WARN_USER_OF_TOXIC_COMMENT
"""
ENABLE_QA when enabled will turn off Q&A features client side.
"""
ENABLE_QA
}
# The moderation mode of the site.
@@ -1481,7 +1486,7 @@ type Settings {
"""
featureFlags provides the enabled feature flags.
"""
featureFlags: [FEATURE_FLAG!]! @auth(roles: [ADMIN])
featureFlags: [FEATURE_FLAG!]! @auth(roles: [ADMIN, MODERATOR])
"""
createdAt is the time that the Settings was created at.