IDEMPIERE-5843 System support users (like SuperUser) cannot see (fix) preferences on tenants (#1992)
IDEMPIERE-5174 / IDEMPIERE-3737
This commit is contained in:
parent
562283fe48
commit
3500070d1e
|
@ -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
|
||||||
|
;
|
||||||
|
|
|
@ -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
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue