sergant210 / controlErrorLog

Adds the ability to control the MODX Revo error log and view it in a popup window.
MIT License
13 stars 5 forks source link

Feature Suggestion: Show addon only to admins #1

Closed vierkantemeter closed 9 years ago

vierkantemeter commented 9 years ago

Hi there,

First of all; thanks for this great add-on! Works really well.

I have a small feature suggestion; option to show the add-on only to users who have admin privileges. Now, my customers (content editors) also see this, and I'm sure it will freak them out :stuck_out_tongue: (although there are no critical errors in the log).

EDIT: For now, I hard-coded the following in the controlErrorLog plug-in. But it would be nice to have this managed with an ACL or system setting.

if ($modx->user->isMember('Administrator')) {
// controlErrorLog code
}
sergant210 commented 9 years ago

Hi. May be you're right.