Non-admin users couldn't update their own preferences

Non-admin users couldn't update their own preferences. So implemented a patch so users can update their own preferences now.
https://dev.sourcefabric.org/browse/SD-850