Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There's possible to delete user one and break your site really bad way. What I did was to hide user one from users. I don't think this is the best way to handle this but it works for me.
Comment | File | Size | Author |
---|---|---|---|
remove_user1_from_admin_people_list.patch | 2.33 KB | kaido.toomingas | |
Comments
Comment #1
kaido.toomingas CreditAttribution: kaido.toomingas commentedComment #2
damiankloip CreditAttribution: damiankloip commentedThis will just remove user 1 from the listing. This is an issue with vbo - you shouldn't be allowed to delete user 1 with a bulk operation.
Comment #3
kaido.toomingas CreditAttribution: kaido.toomingas commentedYeah I learned about this later. VBO uses Entity API for delete actions so it's not that simple to say where this should be handled. For me this helped and I think d.o is the best place to host this patch ;)
Comment #4
kaido.toomingas CreditAttribution: kaido.toomingas commented