diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-21 19:10:24 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-21 19:10:24 -0400 |
commit | 373537efe2f893f91f11c04436073bbb2c2732dd (patch) | |
tree | e744f1260c36e3b1a5c5e92c998ae5ebed76df19 /app/Controller/Project.php | |
parent | bcb39ad4db0f4c1d9bf35437852ee0b74e1680ce (diff) |
Allow admins to transform a private project to a team project
Diffstat (limited to 'app/Controller/Project.php')
-rw-r--r-- | app/Controller/Project.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/Controller/Project.php b/app/Controller/Project.php index fb0a8d05..4e01271a 100644 --- a/app/Controller/Project.php +++ b/app/Controller/Project.php @@ -23,7 +23,7 @@ class Project extends Base else { $project_ids = $this->projectPermission->getMemberProjectIds($this->userSession->getId()); } - + $nb_projects = count($project_ids); $paginator = $this->paginator @@ -128,6 +128,11 @@ class Project extends Base { $project = $this->getProject(); $values = $this->request->getValues(); + + if ($project['is_private'] == 1) { + $values += array('is_private' => 0); + } + list($valid, $errors) = $this->project->validateModification($values); if ($valid) { |