Fixing user permissions