Overview
SHA1:45c49a508041c221081187146e04ea7375dea5cc
Date: 2018-02-09 01:00:35
User: bohwaz
Comment:Mise à jour dernière date de connexion
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-02-09
01:12
[b85cd942a5] Ne pas copier le champ s'il n'existe pas déjà ! (user: bohwaz, tags: trunk, stable)
01:00
[45c49a5080] Mise à jour dernière date de connexion (user: bohwaz, tags: trunk, stable)
2018-02-01
07:35
[507445f2b4] Corrige modification de compte bancaire (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Membres/Session.php from [3b01c6a3bd] to [3ccc485955].

49
50
51
52
53
54
55



56
57
58
59
60
61
62
		$query = sprintf($query, $champ_id, Membres::DROIT_ACCES);

		return $this->db->first($query, $login);
	}

	protected function getUserDataForSession($id)
	{



		return $this->db->first('SELECT m.*, c.droit_connexion, c.droit_wiki, 
			c.droit_membres, c.droit_compta, c.droit_config, c.droit_membres
			FROM membres AS m
			INNER JOIN membres_categories AS c ON m.id_categorie = c.id
			WHERE m.id = ? LIMIT 1;', $id);
	}








>
>
>







49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
		$query = sprintf($query, $champ_id, Membres::DROIT_ACCES);

		return $this->db->first($query, $login);
	}

	protected function getUserDataForSession($id)
	{
		// Mettre à jour la date de connexion
		$this->db->preparedQuery('UPDATE membres SET date_connexion = datetime() WHERE id = ?;', [$id]);

		return $this->db->first('SELECT m.*, c.droit_connexion, c.droit_wiki, 
			c.droit_membres, c.droit_compta, c.droit_config, c.droit_membres
			FROM membres AS m
			INNER JOIN membres_categories AS c ON m.id_categorie = c.id
			WHERE m.id = ? LIMIT 1;', $id);
	}