* fixed problems with multiple runs of onclickuser function
* save user permissions in browser javascript var if permissions are changed