allow invite only when muc is online. fixes #4218
This commit is contained in:
parent
82316d13b0
commit
6e53ab3694
|
@ -156,7 +156,8 @@ public class MucOptions {
|
|||
}
|
||||
|
||||
public boolean canInvite() {
|
||||
return !membersOnly() || self.getRole().ranks(Role.MODERATOR) || allowInvites();
|
||||
final boolean hasPermission = !membersOnly() || self.getRole().ranks(Role.MODERATOR) || allowInvites();
|
||||
return hasPermission && online();
|
||||
}
|
||||
|
||||
public boolean allowInvites() {
|
||||
|
|
Loading…
Reference in a new issue