Skip to content

Commit

Permalink
KNL-1479 Remove join not used in DA use case. (sakaiproject#3545)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored and ern committed Nov 1, 2016
1 parent bc418c8 commit f1d2cf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public String getCountRoleFunctionSql(String inClause, boolean isDelegated)
+ " JOIN SAKAI_REALM_ROLE ROLE ON ROLE.ROLE_KEY = MAINTABLE.ROLE_KEY "
+ " JOIN SAKAI_REALM_FUNCTION FUNCTIONS ON FUNCTIONS.FUNCTION_KEY = MAINTABLE.FUNCTION_KEY "
+ " JOIN SAKAI_REALM SAKAI_REALM ON SAKAI_REALM.REALM_KEY = MAINTABLE.REALM_KEY "
+ " JOIN SAKAI_REALM_RL_GR GRANTS ON GRANTS.REALM_KEY = MAINTABLE.REALM_KEY"
+ (isDelegated ? "":" JOIN SAKAI_REALM_RL_GR GRANTS ON GRANTS.REALM_KEY = MAINTABLE.REALM_KEY")
+ " where ROLE.ROLE_NAME = ? AND FUNCTIONS.FUNCTION_NAME = ?"
+ " and " + inClause
+ (isDelegated ? "":" and GRANTS.ACTIVE = '1' and GRANTS.USER_ID = ?");
Expand Down

0 comments on commit f1d2cf1

Please sign in to comment.