Skip to content

Commit

Permalink
When redirecting to a specific storage, RBAC check storage_show
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Nov 28, 2018
1 parent faf462e commit 7974931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/storage_controller.rb
Expand Up @@ -45,7 +45,7 @@ def init_show

# redirect user back to where they came from if they dont have access to any of vm explorers
# or redirect them to the one they have access to
redirect_controller = role_allows?(:feature => "storage") ? "storage" : nil
redirect_controller = role_allows?(:feature => "storage_show") ? "storage" : nil

if redirect_controller
action = "explorer"
Expand Down

0 comments on commit 7974931

Please sign in to comment.