Added ability to edit user permissions