Don't show big invite button if invites are disabled
This commit is contained in:
parent
f21881d5fa
commit
86e3cbbcce
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user