Tools should only be accessible in "author" mode
Overview
It's currently up to each tool individually to restrict access to "author" mode only. This means Tools are accessible on the publish instance.
New Behavior
By default, Tools should only be accessible on "author" mode. However, tools should be able to opt in to publish mode, if needed. This should be handled by an explicit export, something like allowedModes
. If not exported it should default to ["author"]
(it should be an array allow running on as many modes as needed.
If a Tool is accessed in an unallowed mode BL should return a 404.