Skip to content

Commit

Permalink
Call also super method of method role_allows_feature?
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Jan 11, 2018
1 parent 251c396 commit a7f3c5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper/button/cloud_network_new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def supports_button_action?
end

def role_allows_feature?
role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
super && role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
end

def disabled?
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper/button/cloud_subnet_new.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def calculate_properties
end

def role_allows_feature?
role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
super && role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
end

# disable button if no active providers support create action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def calculate_properties
end

def role_allows_feature?
role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
super && role_allows?(:feature => 'ems_network_show_list') && role_allows?(:feature => 'cloud_tenant_show_list')
end

# disable button if no active providers support create action
Expand Down

0 comments on commit a7f3c5c

Please sign in to comment.