public boolean userCanLaunch(int userID, String actionName)
	{
		Statement st = null;
		ResultSet result = null;
		int idAction = -1;
		boolean ok = false;
		String req = "";
		
		try 
		{
			st = cnx();
			if(st == null) return false;
			
			// RECUPERATION ID ACTION
			req = "SELECT id FROM t_actions WHERE (name='"+actionName+"')";
			result = (ResultSet) st.executeQuery(req);
			if(result.last() && result.getRow() == 1) 
			{
				idAction = result.getInt("id");
				
				// ON REGARDE SI L'USER PEUT LANCER L'ACTION
				req = "SELECT * FROM t_rights WHERE (id_user='"+userID+"' AND id_action='"+idAction+"')";
				result = (ResultSet) st.executeQuery(req);
				if(result.last() && result.getRow() == 1) ok = true;
			}
			result.close();
			st.close();
		} catch (SQLException e) 
		{
			e.printStackTrace();
		}		
		return ok;
	}