Class: Manageiq::OrderItemPolicy

Inherits:
OrderItemPolicy
  • Object
show all
Defined in:
app/policies/manageiq/order_item_policy.rb

Instance Method Summary collapse

Instance Method Details

#provision_update?Boolean

Returns:

  • (Boolean)


11
12
13
14
# File 'app/policies/manageiq/order_item_policy.rb', line 11

def provision_update?
  ap user
  user.admin?
end

#start_service?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'app/policies/manageiq/order_item_policy.rb', line 3

def start_service?
  admin_or_related
end

#stop_service?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'app/policies/manageiq/order_item_policy.rb', line 7

def stop_service?
  admin_or_related
end