Univention Bugzilla – Bug 36281
show a reboot server button in the UMC menu
Last modified: 2014-11-26 06:55:17 CET
Created attachment 6208 [details]
add reboot menu in UMC menu
The UMC menu could show a button which offers to reboot or shutdown the server.
Should - like the current reboot module - the user be possible to enter a reason message for the shutdown?
There are currently 2 modules which offer the functionality: 'reboot' and 'lib/server'.
For lib/server there is no way to determine if the user has permission to reboot/shutdown the server because by default every user has the permission to the 'lib' module.
As solution i would suggest to adapt the reboot module to
* not return a umc/widgets/_ModuleMixin so that it is not shown on the overview page
* add a menu to umc.app which offers the reboot/restart functionality
* adapt the operation set to allow lib/server/reboot / lib/server/shutdown
* use the JS code of lib/server to show the dialog
a small example patch is attached as first idea.
The approach from above has been implemented.
reboot and shutdown buttons are correctly shown
and are working
UCS 4.0-0 has been released:
If this error occurs again, please use "Clone This Bug".