new access rights implemented
This commit is contained in:
parent
68154e8fe9
commit
1b8f082061
11 changed files with 66 additions and 82 deletions
|
@ -30,7 +30,7 @@ class ProjectsController < ApplicationController
|
|||
|
||||
Project.transaction do
|
||||
@project.save!
|
||||
@project.users_projects.create!(:admin => true, :read => true, :write => true, :user => current_user)
|
||||
@project.users_projects.create!(:repo_access => Repository::REPO_RW , :project_access => Project::PROJECT_RWA, :user => current_user)
|
||||
|
||||
# when project saved no team member exist so
|
||||
# project repository should be updated after first user add
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue