Added the permissions to the views.