Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
94ba1f01
Commit
94ba1f01
authored
Oct 03, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If project doesn't have a group, group ldap sync is false.
parent
d3bf5f63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/models/project.rb
app/models/project.rb
+8
-0
app/views/projects/team_members/_form.html.haml
app/views/projects/team_members/_form.html.haml
+1
-1
No files found.
app/models/project.rb
View file @
94ba1f01
...
...
@@ -623,4 +623,12 @@ class Project < ActiveRecord::Base
def
origin_merge_requests
merge_requests
.
where
(
source_project_id:
self
.
id
)
end
def
group_ldap_synced?
if
group
group
.
ldap_synced?
else
false
end
end
end
app/views/projects/team_members/_form.html.haml
View file @
94ba1f01
...
...
@@ -12,7 +12,7 @@
.form-group
=
f
.
label
:user_ids
,
"People"
,
class:
'control-label'
.col-sm-10
=
users_select_tag
(
:user_ids
,
{
multiple:
true
,
skip_ldap:
@project
.
group
.
ldap_synced?
})
=
users_select_tag
(
:user_ids
,
{
multiple:
true
,
skip_ldap:
@project
.
group
_
ldap_synced?
})
%p
2. Set access level for them
.form-group
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment