Skip to content
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

Adding admin as channel mod produces error. [Bug] #872

Closed
ZizzyDizzyMC opened this issue Jun 19, 2020 · 7 comments
Closed

Adding admin as channel mod produces error. [Bug] #872

ZizzyDizzyMC opened this issue Jun 19, 2020 · 7 comments

Comments

@ZizzyDizzyMC
Copy link

To replicate, just add an site administrator as an ranked user in a channel.

This can be 100% ignored and is not a priority, but figured since I noticed it I'd put it here so I don't forget to look at it later.

Updating user rank failed: You can't promote or demote someone with equal or higher rank than you.

The desired action does work though, so again, there's no priority in this.

@calzoneman
Copy link
Owner

I think I'm misunderstanding what makes this a "bug". You are intentionally prevented from changing the rank of someone who has a higher effective rank than you (where effective rank = max(account rank, channel rank, leader rank)).

What is the "desired action"?

@ZizzyDizzyMC
Copy link
Author

I guess I should have been more clear, I created a channel and set Xaekai as a channel administrator in my channel. This produces an error up top, however it still places Xaekai as a channel admin. So the desired action (Set site admin as channel admin, so they have the usercolor) still works.

@calzoneman
Copy link
Owner

Does it persist if you refresh the page? I actually suspect it's not updating anything but just missing a return before sending you the updated rank.

calzoneman added a commit that referenced this issue Jun 19, 2020
@calzoneman
Copy link
Owner

Confirmed my suspicion it was a UI edge case and did not actually result in improperly updating the rank database.

@ZizzyDizzyMC
Copy link
Author

You're right it was UI only, though this means I legit can't add a site admin as a channel mod - the admin would have to set themselves as mod / admin of the channel in order to receive the name color.
But it's good to know that UI bug is fixed.

@calzoneman
Copy link
Owner

calzoneman commented Jun 19, 2020 via email

@calzoneman
Copy link
Owner

Fixed in latest release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants