IDEMPIERE-5843 System support users (like SuperUser) cannot see (fix) preferences on tenants (#1992)

IDEMPIERE-5174 / IDEMPIERE-3737
This commit is contained in:
Carlos Ruiz 2023-09-04 04:43:08 +02:00 committed by GitHub
parent 562283fe48
commit 3500070d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,13 @@
-- IDEMPIERE-5843 System support users (like SuperUser) cannot see (fix) preferences on tenants
SELECT register_migration_script('202309021535_IDEMPIERE-5843.sql') FROM dual;
SET SQLBLANKLINES ON
SET DEFINE OFF
-- Sep 2, 2023, 3:45:38 PM CEST
UPDATE AD_Tab SET WhereClause='(AD_Client_ID = @#AD_Client_ID@ OR ((SELECT AD_Client_ID FROM AD_User WHERE AD_User_ID=@#AD_User_ID@) = 0))',Updated=TO_TIMESTAMP('2023-09-02 15:45:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=156
;
DELETE FROM AD_Preference WHERE AD_User_ID=0
;

View File

@ -0,0 +1,10 @@
-- IDEMPIERE-5843 System support users (like SuperUser) cannot see (fix) preferences on tenants
SELECT register_migration_script('202309021535_IDEMPIERE-5843.sql') FROM dual;
-- Sep 2, 2023, 3:45:38 PM CEST
UPDATE AD_Tab SET WhereClause='(AD_Client_ID = @#AD_Client_ID@ OR ((SELECT AD_Client_ID FROM AD_User WHERE AD_User_ID=@#AD_User_ID@) = 0))',Updated=TO_TIMESTAMP('2023-09-02 15:45:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=156
;
DELETE FROM AD_Preference WHERE AD_User_ID=0
;