Hide the script hint if a user cannot access to the layout module (see #6190)