Sessions with an intended AccessLevel of 2 are granted AccessLevel 3
FlaggAC opened this issue · comments
FlaggAC commented
Bug Report or Feature Request (mark with an x
)
- [x] bug report -> please search issues before submitting
- [ ] feature request
Repro steps.
Grant an account AccessLevel 2 via a sql query update ace_auth.account set accesslevel = 2 where ...
Log in as that user
Delete a lifestone or a player's wielded weapon with the /delete command
The log given by the failure.
No log, but here are the exact lines of code detailing the issue
ACE/Source/ACE.Server/Command/Handlers/AdminCommands.cs
Lines 81 to 82 in 7661da0
Desired functionality.
Any command marked as AccessLevel.Envoy should require an AccessLevel of 3, not 2.
Mention any other details that might be useful.
FlaggAC commented
For reference: another line of code that may be useful for fixing https://github.com/ACEmulator/ACE/blob/master/Source/ACE.Server/WorldObjects/Player.cs#L151