summaryrefslogtreecommitdiff
path: root/app/models/ability.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 00:00:48 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-03 00:00:48 -0700
commit2fc236177f70244101b285bde8ee6a77f779c0ce (patch)
tree289e70a51240f236df3742403fb4eab360431500 /app/models/ability.rb
parentf40d4e6685ca749c69bfc480a747a430f6c9825f (diff)
parent8589f0f4000095583a3a536f4986dd85a379669d (diff)
downloadgitlab-ce-2fc236177f70244101b285bde8ee6a77f779c0ce.tar.gz
Merge pull request #3801 from holdtotherod/feature/internally-public-projects
Internally public projects
Diffstat (limited to 'app/models/ability.rb')
-rw-r--r--app/models/ability.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ability.rb b/app/models/ability.rb
index eb7f89dcfc1..cad5a832978 100644
--- a/app/models/ability.rb
+++ b/app/models/ability.rb
@@ -37,7 +37,7 @@ class Ability
elsif team.reporters.include?(user)
rules << project_report_rules
- elsif team.guests.include?(user)
+ elsif team.guests.include?(user) or project.public?
rules << project_guest_rules
end