mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-462: Retrieve individual database history records directly (by ID).
This commit is contained in:
@@ -95,9 +95,13 @@
|
||||
|
||||
<!-- Search terms -->
|
||||
<where>
|
||||
|
||||
|
||||
<if test="recordIdentifier != null">
|
||||
[guacamole_connection_history].history_id = #{recordIdentifier,jdbcType=INTEGER}
|
||||
</if>
|
||||
|
||||
<if test="identifier != null">
|
||||
[guacamole_connection_history].connection_id = #{identifier,jdbcType=INTEGER}
|
||||
AND [guacamole_connection_history].connection_id = #{identifier,jdbcType=INTEGER}
|
||||
</if>
|
||||
|
||||
<foreach collection="terms" item="term" open=" AND " separator=" AND ">
|
||||
@@ -159,9 +163,13 @@
|
||||
|
||||
<!-- Search terms -->
|
||||
<where>
|
||||
|
||||
|
||||
<if test="recordIdentifier != null">
|
||||
[guacamole_connection_history].history_id = #{recordIdentifier,jdbcType=INTEGER}
|
||||
</if>
|
||||
|
||||
<!-- Restrict to readable connections -->
|
||||
[guacamole_connection_history].connection_id IN (
|
||||
AND [guacamole_connection_history].connection_id IN (
|
||||
<include refid="org.apache.guacamole.auth.jdbc.connection.ConnectionMapper.getReadableIDs">
|
||||
<property name="entityID" value="#{user.entityID,jdbcType=INTEGER}"/>
|
||||
<property name="groups" value="effectiveGroups"/>
|
||||
|
Reference in New Issue
Block a user