fix the update of admin rights (really)

This reverts commit 7c293cb24d29082b9cf5bf64b3b547974547010e and update the
original patch so that "admin" is a boolean