Migrate from 8.5 to 9.0 build 3254

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
MESSI
Posts: 48
Joined: Thu Dec 29, 2022 11:09 pm

Migrate from 8.5 to 9.0 build 3254

Post by MESSI »

Hi there,

Just migrated a multi-tenant app from 8.5 to 9.0.

In 8.5 I use a rule in every BO to protect data from each tenant:

Code: Select all

If TYPE(LoggedInSystemUser)='STAFF' AND LoggedInSTAFF.Company<>RegistryNumbers.Company Then 
READ PROTECT RegistryNumbers FROM CompanyAdmin AND CompanySuport 
The issue is that only for 1 BO if this rule is Enabled it does not show any record.

Does anyone faced this issue? Any idea would very helpful .
Thank you
AwareIM , 8.8, 9.0 - MariaDB, Windows Server 2012,2019, 2022 Standard
joben
Posts: 241
Joined: Wed Nov 06, 2019 9:49 pm
Location: Sweden
Contact:

Re: Migrate from 8.5 to 9.0 build 3254

Post by joben »

I've never used TYPE() myself and don't know why you get a different result in the latest build.

Is there a reason why you use TYPE() in this scenario rather than looking at the attribute LoggedInSystemUser.AccessLevel?
Regards, Joakim

Image
MESSI
Posts: 48
Joined: Thu Dec 29, 2022 11:09 pm

Re: Migrate from 8.5 to 9.0 build 3254

Post by MESSI »

Thank you for your reply.

Tried to modify as you mentioned but strange thing. Inside the query finds 1149 records for the loggedin tenant, but it does not display anything.
Tried to inspect the CSS but not a CSS problem
Screenshot_56.jpg
Screenshot_56.jpg (221.1 KiB) Viewed 3431 times
AwareIM , 8.8, 9.0 - MariaDB, Windows Server 2012,2019, 2022 Standard
MESSI
Posts: 48
Joined: Thu Dec 29, 2022 11:09 pm

Re: Migrate from 8.5 to 9.0 build 3254

Post by MESSI »

These rules worked in 8.5.

Migrating to 9.0 - I had only to modify few reserved words, but nothing regarding to the BO's with which there are these issues.
AwareIM , 8.8, 9.0 - MariaDB, Windows Server 2012,2019, 2022 Standard
Post Reply