diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandPermission.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandPermission.kt index d3d9fc1b9..22e71c2ce 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandPermission.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/CommandPermission.kt @@ -199,6 +199,6 @@ internal class AndCommandPermission( private val second: CommandPermission ) : CommandPermission() { override fun CommandSender.hasPermission(): Boolean { - return this.hasPermission(first) || this.hasPermission(second) + return this.hasPermission(first) && this.hasPermission(second) } } \ No newline at end of file