]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9140 drop unused SQL query selectRootComponentPermissions
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 14 Apr 2017 15:43:03 +0000 (17:43 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 27 Apr 2017 12:25:54 +0000 (14:25 +0200)
server/sonar-db-dao/src/main/resources/org/sonar/db/permission/AuthorizationMapper.xml

index dd5fc1ff306b6f5a628b1a277ffde21ec09b6fcf..eda18667c6408c376735cdf1fc158bcc861545d4 100644 (file)
     gr.group_id is null
   </select>
 
-  <select id="selectRootComponentPermissions" parameterType="map" resultType="string">
-    select gr.role
-    from group_roles gr
-    inner join groups_users gu on gr.group_id=gu.group_id
-    where
-    gr.resource_id=#{rootComponentId,jdbcType=BIGINT} and
-    gu.user_id=#{userId,jdbcType=INTEGER}
-
-    union
-    select gr.role
-    from group_roles gr
-    where
-    gr.resource_id=#{rootComponentId,jdbcType=BIGINT} and
-    gr.group_id is null
-
-    union
-
-    select ur.role
-    from user_roles ur
-    where
-    ur.resource_id=#{rootComponentId,jdbcType=BIGINT} and
-    ur.user_id=#{userId,jdbcType=INTEGER}
-  </select>
-
   <select id="selectRootComponentPermissionsOfAnonymous" parameterType="map" resultType="string">
     select gr.role
     from group_roles gr