13 lines
272 B
Ruby
13 lines
272 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PeopleHelper
|
|
def staff_person_link_or_none(person)
|
|
if person.nil?
|
|
translate :none
|
|
elsif policy([:staff, person]).show?
|
|
link_to person.full_name, [:staff, person]
|
|
else
|
|
person.full_name
|
|
end
|
|
end
|
|
end
|