Commit c809dd24 authored by Evan Prodromou's avatar Evan Prodromou

Don't show big invite button if invites are disabled

parent ba7e73ee
......@@ -207,7 +207,7 @@ class AllAction extends ProfileAction
{
// Show invite button, as long as site isn't closed, and
// we have a logged in user.
if (!common_config('site', 'closed') && common_logged_in()) {
if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) {
if (!common_config('site', 'private')) {
$ibs = new InviteButtonSection(
$this,
......
......@@ -246,7 +246,7 @@ class PublicAction extends Action
{
// Show invite button, as long as site isn't closed, and
// we have a logged in user.
if (!common_config('site', 'closed') && common_logged_in()) {
if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) {
if (!common_config('site', 'private')) {
$ibs = new InviteButtonSection(
$this,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment