allow non-admin user to configure a plugin

2 posts / 0 new
Last post
holmesg
allow non-admin user to configure a plugin

I created a custom plugin for a client. Unfortunately, I did not realize that they need/want for a non-admin user to be able to configure the plugin.

Is it a matter of creating a new privilege - PRIV_PLUGINADMIN, perhaps? - and modifying PluginConfig.php accordingly?  if so, how would I go about that?

ealmasy
Re: allow non-admin user to configure a plugin

Rather than modifying PluginConfig.php, I would create a custom privilege flag via the Admin interface, and then add a new page to the plugin that checks for that privilege flag and allows users to edit the plugin's configuration settings.  The ConfigSettingsUI object should make the new page pretty easy to implement, but if you go this route and run into any snags, please let us know and we'll help smooth them out.