From 6db242473ea83313e143d45153b8a097f25acc97 Mon Sep 17 00:00:00 2001 From: leak Date: Sat, 13 Aug 2011 13:24:48 +0200 Subject: Core/Commands: Console should be able to add/remove rights in any case --- src/server/scripts/Commands/cs_account.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_account.cpp b/src/server/scripts/Commands/cs_account.cpp index e5981b649be..c63e47fbc50 100644 --- a/src/server/scripts/Commands/cs_account.cpp +++ b/src/server/scripts/Commands/cs_account.cpp @@ -452,7 +452,7 @@ public: } // Check and abort if the target gm has a higher rank on one of the realms and the new realm is -1 - if (gmRealmID == -1) + if (gmRealmID == -1 && plSecurity != SEC_CONSOLE) { QueryResult result = LoginDatabase.PQuery("SELECT * FROM account_access WHERE id = '%u' AND gmlevel > '%d'", targetAccountId, gm); if (result) -- cgit v1.2.3