"only when" is not working

Hello,

My system has two user types.
One is general users who can post, and the other is administrative users who can manage posted information.

In order not to show each other’s my pages, I set up “user type” data for users, and use the “only when” function to go users on external pages when they visit each my page unless they are the corresponding user.

Until yesterday it was working fine, but when I tried it earlier, it took me to an external page, even for users who were granted access.

Are you using “Run as” user? You might not actually be logged in as a user to be able to evaluate.

Thank you for reply!

Yes. I’m using “Run as”. Until yesterday, I switched “run as” and were able to check each other’s pages. Both pages now go to the external page, even though user are authorized.

Do you have any nested conditions where 1 could overturn the other?

1 Like

I haven’t touched the system since last night, when it was working fine, until today, so I haven’t set any conflicting conditions.

Hi, as adviced by @doug.burden you should just run a step by step check using the debugger first. It sounds like something that won’t take long to diagnose.

I too many times thought the same as you when something suddenly broke; “but I didn’t change anything”. Turns out that what I thought worked was actually setup pretty shoddily.

If you do believe it’s a bug then you should submit a bug report.

1 Like

After listening to your advice, I went back in time yesterday and remembered what I did before I turned off my computer. I was really stupid. I had set up a user’s privacy role, but had accidentally removed a required condition.

It’s working as usual. Thank you very much!

1 Like

No worries, it’s always the little stupid things we do that breaks something! I once accidentally undo-ed something important because i forgot Bubble’s undo is not just session based.

1 Like

This topic was automatically closed after 14 days. New replies are no longer allowed.