Skip to content

Commit

Permalink
Temporarily disable creation of new organizations
Browse files Browse the repository at this point in the history
Signed-off-by: Walker Crouse <[email protected]>
  • Loading branch information
windy1 committed Mar 7, 2017
1 parent f9c89ad commit 81e76ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/controllers/Organizations.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class Organizations @Inject()(forms: OreForms,
BadRequest
else if (user.isLocked)
Redirect(failCall).withError("error.user.locked")
else if (!this.config.orgs.getBoolean("enabled").get)
Redirect(failCall).withError("error.org.disabled")
else {
this.forms.OrganizationCreate.bindFromRequest().fold(
hasErrors =>
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name := "ore"

version := "1.2.6"
version := "1.2.7"

lazy val `ore` = (project in file(".")).enablePlugins(PlayScala)

Expand Down
1 change: 1 addition & 0 deletions conf/application.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ ore {
}

orgs {
enabled = false
passwordLength = 60
dummyEmailDomain = "spongepowered.org"
groupId = 64
Expand Down
1 change: 1 addition & 0 deletions conf/messages
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ error.project.invalidPluginFile = Invalid plugin file.
error.channel.last = You cannot delete your only channel.
error.channel.lastNonEmpty = You cannot delete your only non-empty channel.
error.tagline.tooLong = Tagline is too long (max {0}).
error.org.disabled = Apologies, creation of Organizations is temporarily disabled.
error.org.createLimit = You may only create up to {0} organizations!
error.org.cannotCreate = Unable to create an organization at this time.
error.org.cannotUpdateAvatar = Unable to update avatar at this time.
Expand Down

0 comments on commit 81e76ba

Please sign in to comment.