Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/gitorious
diff options
context:
space:
mode:
authorThomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>2012-08-28 06:07:26 (GMT)
committer Thomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>2012-08-28 06:07:26 (GMT)
commitb3054103dae7f061c4f674d8e10c99d25e13966e (patch)
treef7ca32b83c73b8372a0d9ae5c186b5209bc20542 /lib/gitorious
parent67c59c5f075d54a7d6b4a1092d4a29bab8a232f3 (diff)
Private projects should make its repos private no matter what.
Reverts my earlier slip-up: I thought I simplified both UX and code but of course a private project should override its repositories private/public preferences and make everything private by default.
Diffstat (limited to 'lib/gitorious')
-rw-r--r--lib/gitorious/protectable.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitorious/protectable.rb b/lib/gitorious/protectable.rb
index b24456a..299dadc 100644
--- a/lib/gitorious/protectable.rb
+++ b/lib/gitorious/protectable.rb
@@ -36,11 +36,11 @@ module Gitorious
end
def public?
- !private?
+ content_memberships.length == 0
end
-
+
def private?
- content_memberships && content_memberships.length > 0
+ !public?
end
def member?(candidate)