app/models/foreman_tasks/task.rb in foreman-tasks-0.9.6 vs app/models/foreman_tasks/task.rb in foreman-tasks-0.10.0
- old
+ new
@@ -5,14 +5,11 @@
include Authorizable
def check_permissions_after_save
# there's no create_tasks permission, tasks are created as a result of internal actions, in such case we
# don't do authorization, that should have been performed on wrapping action level
- if id_changed?
- true
- else
- super
- end
+ # the same applies for updating
+ true
end
# TODO: missing validation of states
self.primary_key = :id