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
b3f522f4
Commit
b3f522f4
authored
Oct 07, 2015
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LDAP group links API is not working as expected.
parent
f0782219
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
CHANGELOG
CHANGELOG
+3
-0
app/models/ldap_group_link.rb
app/models/ldap_group_link.rb
+1
-0
db/migrate/20151007110107_update_group_links.rb
db/migrate/20151007110107_update_group_links.rb
+6
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
CHANGELOG
View file @
b3f522f4
Please view this file on the master branch, on stable branches it's out of date.
v 8.1.0
- Fix: LDAP group links API is not working as expected.
v 8.0.1
- Improve CI migration procedure and documentation
...
...
app/models/ldap_group_link.rb
View file @
b3f522f4
...
...
@@ -5,6 +5,7 @@ class LdapGroupLink < ActiveRecord::Base
validates
:cn
,
:group_access
,
:group_id
,
presence:
true
validates
:cn
,
uniqueness:
{
scope:
[
:group_id
,
:provider
]
}
validates
:group_access
,
inclusion:
{
in:
Gitlab
::
Access
.
all_values
}
validates
:provider
,
presence:
true
scope
:with_provider
,
->
(
provider
)
{
where
(
provider:
provider
)
}
...
...
db/migrate/20151007110107_update_group_links.rb
0 → 100644
View file @
b3f522f4
class
UpdateGroupLinks
<
ActiveRecord
::
Migration
def
change
provider
=
quote_string
(
Gitlab
::
LDAP
::
Config
.
providers
.
first
)
execute
(
"UPDATE ldap_group_links SET provider = '
#{
provider
}
' WHERE provider IS NULL"
)
end
end
db/schema.rb
View file @
b3f522f4
...
...
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2015
0930110012
)
do
ActiveRecord
::
Schema
.
define
(
version:
2015
1007110107
)
do
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
...
...
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