Add debug option

This commit is contained in:
Frédéric Guillot
2014-12-31 12:56:29 -05:00
parent 772804add8
commit 198f8d6a8e
8 changed files with 23 additions and 10 deletions

View File

@@ -574,7 +574,7 @@ class Project extends Base
*/
public function create(array $values = array(), array $errors = array())
{
$is_private = $this->request->getIntegerParam('private', ! $this->userSession->isAdmin());
$is_private = $this->request->getIntegerParam('private', $this->userSession->isAdmin() ? 0 : 1);
$this->response->html($this->template->layout('project/new', array(
'board_selector' => $this->projectPermission->getAllowedProjects($this->userSession->getId()),