diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6c19d3ac36..a4a8e49123 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -47,8 +47,11 @@ def updator_link(model) return 'unknown' if model.updator.blank? return model.updator if model.updator.is_a? String - # can be api user or some other user - link_to(model.updator, ['admin', model.updator]) + if model.updator.kind_of?(RegistrantUser) + model.updator + else + link_to(model.updator, ['admin', model.updator]) + end end def currency(amount)