set user permissions and changed link permissions