moacode / craft-fab-permissions

Restrict access to fields and tabs for particular user groups across your Craft elements.
Other
16 stars 9 forks source link

Update installation instructions to use web-only config #24

Closed JoshCoady closed 2 years ago

JoshCoady commented 3 years ago

The fields service config can break console commands that use the fields service because when running on the console the object returned by Craft::$app->getUser() is craft\console\User and not craft\web\User. Since you are generally running console commands as admin, configuring the fields service to run only in the web context solves this issue.

Fixes #13