From 074af959ab462571bbe49bdab407aa9cda5827d0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 14 May 2020 21:55:14 +0800 Subject: [PATCH] Fix And permission --- .../kotlin/net/mamoe/mirai/console/command/CommandPermission.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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