I thought this task would be super easy but I can’t get it to work. Any ideas?
In short: When page P is loaded and the main group on the page (which is set during a search of the url) has draft set to Yes, then navigate back to the previous page if the group project creator is not the current user or is logged in as me (admin email addy).
I can get it to work so that as the admin I can still see the page OR so that the creator can still see the page, but I can’t get both to work. Tried it so far every which way… With the conditions set within the main box (When page is loaded), with some set there and some set in Step one with the “only when…” setting. I’ve changed the order… This feels like it should be simple! What am I missing?
Hi Jen Would it work if for the Go to Page action, the condition was “only when Current User’s email is not Project ID Group’s Project’s Creator’s email and Project ID Group’s Project’s Creator’s [Admin field] is ‘no’’”?
I would have put money on the fact that I tried that but I must have done it wrong because your idea worked! Do you know, or I should ask, why AND is the correct choice here and not OR? It feels backward to me.
I bet you did have it before too! It definitely feels a little backwards when reading it (I think I did a triple-check reading it outloud!)
Someone else probably has a much more elegant way of explaining this but, in this case we do want admins or the project creators to be able to view the project, as long as one of those conditions is true. That’s the confusing bit.
But this re-direct condition focuses on who we don’t want to be able to view the project - Users who qualify as both non-creators of the Page Project and non-admins.
The condition “Current User’s email is not Project Creator’s email and Project’s Admin field is no” can only be ‘true’ if both of those statement parts are true, and will not run if one of those statements is false, since it’s an AND condition. That leaves us with three possible scenarios happening when a User goes to that page:
If the User is not the creator of the Project AND not a site admin–> redirect condition requirements fully met, redirect the User because they didn’t create the project and are not a site admin
If the User is not the creator of the Project, and is a site admin --> redirect condition requirements not fully met, don’t redirect this User, because the User is an admin
If the User is the creator of the Project, and not a site admin --> redirect condition requirements not fully met, don’t redirect this User, because the User is the creator of the project
I think that’s the general idea! If you have any questions feel free to let me know!