plots2
plots2 copied to clipboard
Admin can ban itself
Description
Hi @jywarren This is one of the unique issue that I found.
While trying out the the revision history and the exploring button.
I clicked on the ban button of revision history and as I was logged in as admin. And the button ban which I clicked was of the change done by me only. So when I clicked on the button, I got the message the instant is removed and user is banned
, Thus I banned myself.
Screenshot 1 :
Screenshot 2 :
@publiclab/plots2-reviewers What's your opinion regarding this ? Thanks !!
IMHO I don't think an admin should be able to ban themselves. There might be cases where this is done accidentally.
Agree with @siaw23!
Hi @siaw23 @gauravano I tried on second image. And I did ban myself. Then I changed my status from db. I clicked on ban button and It removed my latest changes to wiki and banned myself showing the message the instant is removed and user is banned
.
Thanks !!
OK so this behaviour is not normal I think. Definitely a user shouldn't be able to ban themselves. As to what's done when a user is banned (with their changes) I think @jywarren can chime in on this one.
Yes, I think so too @siaw23, let's wait for his suggestion on this one, then we can probably just add a condition to remove the ban option for the current user.
Please may I work on this issue ?