More tests pertaining to user permissions.
The user permissions dialog now shows correct user permissions.
Users can now toggw toggle user permissions (saving to come).