forked from GNUsocial/gnu-social
Don't show big invite button if invites are disabled
This commit is contained in:
parent
ba7e73ee97
commit
c809dd24c5
@ -207,7 +207,7 @@ class AllAction extends ProfileAction
|
|||||||
{
|
{
|
||||||
// Show invite button, as long as site isn't closed, and
|
// Show invite button, as long as site isn't closed, and
|
||||||
// we have a logged in user.
|
// 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')) {
|
if (!common_config('site', 'private')) {
|
||||||
$ibs = new InviteButtonSection(
|
$ibs = new InviteButtonSection(
|
||||||
$this,
|
$this,
|
||||||
|
@ -246,7 +246,7 @@ class PublicAction extends Action
|
|||||||
{
|
{
|
||||||
// Show invite button, as long as site isn't closed, and
|
// Show invite button, as long as site isn't closed, and
|
||||||
// we have a logged in user.
|
// 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')) {
|
if (!common_config('site', 'private')) {
|
||||||
$ibs = new InviteButtonSection(
|
$ibs = new InviteButtonSection(
|
||||||
$this,
|
$this,
|
||||||
|
Loading…
Reference in New Issue
Block a user