Fix bug: editing private project enable user management

This commit is contained in:
Frederic Guillot
2015-05-21 12:10:01 -04:00
parent 8ebeac656b
commit fb68231f2b
2 changed files with 5 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ class Project extends Base
$project = $this->getProject();
$values = $this->request->getValues();
if ($project['is_private'] == 1) {
if ($project['is_private'] == 1 && $this->userSession->isAdmin() && ! isset($values['is_private'])) {
$values += array('is_private' => 0);
}