Core/Commands: Console should be able to add/remove rights in any case

This commit is contained in:
leak
2011-08-13 13:24:48 +02:00
parent 91a3bfe42a
commit 6db242473e
+1 -1
View File
@@ -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 // 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); QueryResult result = LoginDatabase.PQuery("SELECT * FROM account_access WHERE id = '%u' AND gmlevel > '%d'", targetAccountId, gm);
if (result) if (result)