texnixe / kirby-logger

45 stars 4 forks source link

Role hardcoded instead of changeable in config #6

Closed svnt closed 7 years ago

svnt commented 7 years ago

Hello,

it would be nice to have the option to set the role(s) for the widget/plugin in the kirby config instead of the hardcoded solution: https://github.com/texnixe/kirby-logger/search?utf8=✓&q=Admin&type=

In my case only 'auditors' should see it so i had to hack your core code.

best regards, Sven

texnixe commented 7 years ago

This is now possible via the logger.rolesoption which accepts an array of options, see readme.