diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-03-17 03:23:59 +0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2016-03-17 03:23:59 +0300 |
commit | a18ac62756573a2da2c42ca50b6f30033be6fa63 (patch) | |
tree | 6f95ea299b1accf8cbc559478a59eeaeeb15d95b /app/finders/contributed_projects_finder.rb | |
parent | 44c127447b5a3cfc7aaea6f19e18baf9f42ad500 (diff) |
Block internal groups/projects visibility to external users
Diffstat (limited to 'app/finders/contributed_projects_finder.rb')
-rw-r--r-- | app/finders/contributed_projects_finder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/contributed_projects_finder.rb b/app/finders/contributed_projects_finder.rb index 0209649b017..4f7fe1c748b 100644 --- a/app/finders/contributed_projects_finder.rb +++ b/app/finders/contributed_projects_finder.rb @@ -11,7 +11,7 @@ class ContributedProjectsFinder # # Returns an ActiveRecord::Relation. def execute(current_user = nil) - if current_user + if current_user && !current_user.external? relation = projects_visible_to_user(current_user) else relation = public_projects |