disallow inviting if invites are disabled
This commit is contained in:
@@ -91,7 +91,7 @@ class Users(Model):
|
||||
|
||||
def can_invite(self):
|
||||
if not current_app.config['DISABLE_SIGNUP']:
|
||||
return True
|
||||
return False
|
||||
|
||||
if current_app.config['MODS_CAN_INVITE'] and self.is_mod():
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user