fixed security checker to work with commands

Grants access, if there is no firewall at all, which is the case in the cli context.

For that there is a check, if there is a token. If there is no firewall, there won't be a token. If we are behind a firewall but not logged in, there is the `AnonymousToken`, so the permissions will be correctly checked.

__Tasks:__

- [ ] test coverage
- [ ] gather feedback for my changes
- [ ] submit changes to the documentation

__Informations:__

| Q             | A
| ------------- | ---
| Tests pass?   | yes
| Fixed tickets | none
| BC Breaks     | Security does not apply to console commands anymore
| Doc           | none
I would group these two lines together.