Perloader with restricted action file

Hi,

I have a preloader on my page which contains a server connect to retrieve data.
I have no premissions restriction on the action file which is called by the server connection, so the page loads OK.

Now if I change the action file to have a premissions restriction enabled, when the page loads it get’s stuck on the preloader as the server connect returns a status code of 403.

Even if I put the elements on the page in a conditional region which are supposed to returned, the preloader gets stuck on screen.

How do I go about using the preloader on a page which may get back status 403 from a action file if restricted?

Thanks
Ray

Why not put a redirect to a page where the users can log in, then return to this page, after they log in.

Hi @Teodor,

Thanks for the reply.

My issue is that I have one dashboard for many users.

The user has an option of two access levels. If the user has full access the get to see everything on the page. If the user has limited access, I need to hide menus/content/data from the user. If I just used plain conditional region or display-show conditions, the data is still visiable in the source.

So I have now put a restriction on the action file to limit to full access users.
Therefor the data will never be viewable in the source if the user does not have full access.

I am afraid you cannot use the preloader on such a page, as it will never hide.

Actually, just figured it out. I put the server connections inside a condition also.

So if the condition of the user does not meet the access level, it does not try to load the server connections.

1 Like