Skip to content

Commit

Permalink
Merge pull request #2959 from smelamud/disable-vm-transform-in-cfme
Browse files Browse the repository at this point in the history
Show VM transform button only if permitted
(cherry picked from commit aa625cd)
  • Loading branch information
martinpovolny authored and simaishi committed Dec 14, 2017
1 parent ea91e52 commit 865e73b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class ApplicationHelper::Button::MassTransformVmButton < ApplicationHelper::Button::Basic
def visible?
true
store = Vmdb::PermissionStores.instance
store.can?('vm_transform_mass')
end

def disabled?
Expand Down

0 comments on commit 865e73b

Please sign in to comment.