-
-
Notifications
You must be signed in to change notification settings - Fork 457
Improvements on !admin menu flags #1364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Lets say we have override the sm_unmute command and changed it to ADMFLAG_CUSTOM1. Then create an admin, we gived our admin ADMFLAG_Chat flag, admin can't use sm_unmute command cause it doesnt have access to this command. But if admin go into "!admin" menu then, he will able to run sm_unmute on "player command" menus
|
Nice catch. I'm not sure if showing the disabled options is useful though. You should just not add the menu option at all if the user doesn't have access to it. |
|
i made this way because if the admin wants to see if user gagged or not. It can be changed easily |
|
Seeing who is muted is part of the permission in my opinion. If you can't use sm_mute you shouldn't see anything about it anywhere. |
|
Well, I changed it according to your opinion |
peace-maker
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this looks good except for the nits! 👍
|
Thank you! |
|
Was this already fixed in master? (I don’t have a PC handy but saw merged to 1.10-dev)
…Sent from my iPhone
On Oct 24, 2020, at 1:22 PM, peace-maker ***@***.***> wrote:
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
* Improvements on !admin menu flags Lets say we have override the sm_unmute command and changed it to ADMFLAG_CUSTOM1. Then create an admin, we gived our admin ADMFLAG_Chat flag, admin can't use sm_unmute command cause it doesnt have access to this command. But if admin go into "!admin" menu then, he will able to run sm_unmute on "player command" menus * removed unauthorized menu items * Deleted Whitespace and ITEMDRAW_DEFAULT
Lets say we have override the sm_unmute command and changed it to ADMFLAG_CUSTOM1.
Then create an admin, we gived our admin ADMFLAG_Chat flag, admin can't use sm_unmute command cause it doesnt have access to this command.
But if admin go into "!admin" menu then, he will able to run sm_unmute on "player command" menus
this vulnerability also affects mute,gag and silence commands