[PATCH conductor 12/13] require Privilege::PRIV_VIEW to view roles index

Mo Morsi mmorsi at redhat.com
Thu May 17 13:40:06 UTC 2012


---
 src/app/controllers/roles_controller.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/app/controllers/roles_controller.rb b/src/app/controllers/roles_controller.rb
index efa4456..60de8e4 100644
--- a/src/app/controllers/roles_controller.rb
+++ b/src/app/controllers/roles_controller.rb
@@ -19,6 +19,7 @@ class RolesController < ApplicationController
   before_filter :load_roles, :only => [:show]
 
   def index
+    require_privilege(Privilege::PERM_VIEW)
     clear_breadcrumbs
     save_breadcrumb(roles_path)
     load_roles
-- 
1.7.6.5




More information about the aeolus-devel mailing list