Core/Commands: Console should be able to add/remove rights in any case
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user