Merge deploy keys identifier with read only keys
This commit is contained in:
parent
78edd7469c
commit
3a597db773
1 changed files with 1 additions and 1 deletions
|
@ -191,7 +191,7 @@ class Project < ActiveRecord::Base
|
||||||
def repository_readers
|
def repository_readers
|
||||||
keys = Key.joins({:user => :users_projects}).
|
keys = Key.joins({:user => :users_projects}).
|
||||||
where("users_projects.project_id = ? AND users_projects.repo_access = ?", id, Repository::REPO_R)
|
where("users_projects.project_id = ? AND users_projects.repo_access = ?", id, Repository::REPO_R)
|
||||||
keys.map(&:identifier)
|
keys.map(&:identifier) + deploy_keys.map(&:identifier)
|
||||||
end
|
end
|
||||||
|
|
||||||
def repository_writers
|
def repository_writers
|
||||||
|
|
Loading…
Add table
Reference in a new issue