Fixed user update bug

There was a problem in editing user roles where roles couldn't be added.
Also added a "is used?" column in the plant index to indicate if an item
has been disused.