akiko-pusu / redmine_banner

Maintenance Repository - https://github.com/agileware-jp/redmine_banner
GNU General Public License v2.0
98 stars 53 forks source link

Option to disable operations for non-admins #7

Closed jwalkerbg closed 4 years ago

jwalkerbg commented 12 years ago

Hello

I think that it will be useful to have an option to disable Redmine operations for non-admin users. Example use case:

The administrator needs to test some new plugin. While in doing this, he/she does not want any other user to work with Redmine. So, he/she activates redmine_banner and activates an option to disable operations for the regular users. A banner explains that Redmine is disabled and no other links and pages are displayed for the regular users. Redmine is functional fully for the administrator and the banner stays to remind him that Redmine is in maintenance mode.

After finishing the work, the administrator deactivates redmine_banner.

akiko-pusu commented 12 years ago

Hello! Thanks you for your translation and request.

I wonder I could implement such feature, but I have a plan to support timer function to show banner message.

In addition to above, I know another unique plugin, named "SOPA Blackout".

Please see: http://www.redmine.org/plugins/sopa_blackout.

This plugin is the one to show the black screen only on 18th January 2012. Though target date was passed, I think above plugin work is similar to your request.

So, maybe I can implement the function that you hope. But, I have no idea to stop any direct request, such as posting request from programs with using Redmine's API....

How about?

jwalkerbg commented 12 years ago

I found a very simple plugin from Eric Davis, redmine_maintenance , here: https://github.com/edavis10/redmine_maintenance_mode . It is enough to put it into vendor/plugins folder and restart Redmine. All non-admin users will see a maintenance message. I cannot tell if this could be incorporated into redmine_timer (I do not know enough Ruby & rails).

akiko-pusu commented 12 years ago

I didn't know about above plugin, redmine_maintenance. I'm so surprised because the code is quite simple, and also I'm very interested in this function. Thank you for your telling me above :-)

It seems this plugin has not the feature to turn on/off the maintenance mode. For administrators, including me, I think it's convenient to turn on/off the mode online.

Please give me a time to think about.

akiko-pusu commented 10 years ago

Ready for implement.