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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
5f3df89c
Commit
5f3df89c
authored
Jan 25, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix teams + gitolite access
parent
74e32906
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
lib/gitlab/user_team_manager.rb
lib/gitlab/user_team_manager.rb
+3
-5
No files found.
lib/gitlab/user_team_manager.rb
View file @
5f3df89c
...
...
@@ -79,12 +79,10 @@ module Gitlab
granted_access
=
max_teams_member_permission_in_project
(
user
,
project
)
project_team_user
=
UsersProject
.
find_by_user_id_and_project_id
(
user
.
id
,
project
.
id
)
project_team_user
.
destroy
if
project_team_user
.
present?
if
project_team_user
.
present?
project_team_user
.
destroy
end
if
project_team_user
.
blank?
&&
granted_access
>
0
# project_team_user.project_access != granted_access
if
granted_access
>
0
UsersProject
.
add_users_into_projects
([
project
.
id
],
[
user
.
id
],
granted_access
)
end
end
...
...
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