Commit c026c374 authored by msalla's avatar msalla

User profile validation of profile id to be from profile master

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200631 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fd30b106
...@@ -207,10 +207,17 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U ...@@ -207,10 +207,17 @@ public class UserRightsPrc extends ProcessEJB implements UserRightsPrcLocal , U
//String profileSql = " select count(*) " + //String profileSql = " select count(*) " +
// " from user_rights " + // " from user_rights " +
// " where profile_id = '" + profileId + "' " ; // " where profile_id = '" + profileId + "' " ;
//commented sql by -Monika-09-may-2019
/*String profileSql = " select count(1) " +
" from gencodes " +
" where fld_name = 'PROFILE_ID' and fld_value = '" + profileId + "' " ;*/
//Table name changed from gencode to profile-Monika-09-MAy-2019
String profileSql = " select count(1) " + String profileSql = " select count(1) " +
" from gencodes " + " from profile " +
" where fld_name = 'PROFILE_ID' and fld_value = '" + profileId + "' " ; " where PROFILE_ID = '" + profileId + "' " ;
int profileCount = 0; int profileCount = 0;
System.out.println("ProfileSql :: " + profileSql); System.out.println("ProfileSql :: " + profileSql);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment