Don't show big invite button if invites are disabled

This commit is contained in:
Evan Prodromou 2012-10-17 10:09:40 -04:00
parent ba7e73ee97
commit c809dd24c5
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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,