From: <jt...@hy...> - 2007-06-20 00:06:19
|
Author: jtravis Date: 2007-06-19 17:06:10 -0700 (Tue, 19 Jun 2007) New Revision: 4834 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=4834 Modified: trunk/ui_plugins/gconsole/app/ConsoleController.groovy Log: Limit GConsole to super users Modified: trunk/ui_plugins/gconsole/app/ConsoleController.groovy =================================================================== --- trunk/ui_plugins/gconsole/app/ConsoleController.groovy 2007-06-20 00:05:04 UTC (rev 4833) +++ trunk/ui_plugins/gconsole/app/ConsoleController.groovy 2007-06-20 00:06:10 UTC (rev 4834) @@ -15,6 +15,13 @@ def ConsoleController() { setTemplate('standard') + addBeforeFilter({ + if (!user.isSuperUser()) { + render(inline: "Unauthorized") + return true + } + return false + }) } def index(params) { |