Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyf committed Dec 19, 2023
1 parent 1342260 commit ec74930
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/models/site.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ def admin_emails=(emails)
remove_admins_by_email(removed_admin_emails) if removed_admin_emails
end

def institution_label
if Site.instance&.institution_name&.present?
Site.instance.institution_name.to_s
else
Site.instance&.account&.cname
end
end

private

# Add/invite admins via email address
Expand Down

0 comments on commit ec74930

Please sign in to comment.