diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 952fa4483..f71a7501b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -688,7 +688,7 @@ class ApplicationController < ActionController::Base @project, @owner = Project.find_with_namespace(namespace, id) - if @project and current_user.can_read_project?(@project) and controller_path == "projects/project_invite_links" + if @project and (current_user.can_read_project?(@project) || controller_path == "projects/project_invite_links") logger.info "###########: has project and can read project" @project # elsif @project && current_user.is_a?(AnonymousUser)