Skip to content
Snippets Groups Projects
Unverified Commit a882f5b1 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 44329e48
No related branches found
No related tags found
No related merge requests found
......@@ -31,11 +31,11 @@ class Extranet::ApplicationController < ApplicationController
end
def user_is_alumnus
about.alumni.find_by(id: current_user.person&.id).present?
current_extranet.feature_alumni? && about.alumni.find_by(id: current_user.person&.id).present?
end
def user_is_contact
current_extranet.connected_people.find_by(id: current_user.person&.id).present?
current_extranet.feature_contacts? && current_extranet.connected_people.find_by(id: current_user.person&.id).present?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment