Pass the global session to the rendered component object to be able to check the permissions for the current user.