Add option to allow everybody on a project

This commit is contained in:
Frédéric Guillot
2014-10-21 18:51:59 -04:00
parent 88a1120d9b
commit 2c056bb9bb
21 changed files with 213 additions and 44 deletions

View File

@@ -151,7 +151,18 @@ class User extends Base
public function getList()
{
$users = $this->db->table(self::TABLE)->columns('id', 'username', 'name')->findAll();
return $this->prepareList($users);
}
/**
* Common method to prepare a user list
*
* @access public
* @param array $users Users list (from database)
* @return array Formated list
*/
public function prepareList(array $users)
{
$result = array();
foreach ($users as $user) {