summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-11 19:03:19 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-03-11 19:03:19 +0100
commit9a95b15552fa8920800274324aa65900360e8038 (patch)
tree5fa79dfb3fc72008bad0044e0d0723b542a90415 /app/models
parent068fd5de8a45ef0814c500df10d3b9d39496fcd9 (diff)
downloadgitlab-ce-9a95b15552fa8920800274324aa65900360e8038.tar.gz
Add share project from group lock
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 56865459724..40f8c4c83da 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -881,8 +881,7 @@ class Project < ActiveRecord::Base
end
def allowed_to_share_with_group?
- # TODO: replace with logic
- true
+ !namespace.share_with_group_lock
end
def ci_commit(sha)