I have a Members Page that contains a Table which displays the items listed in a Collection. On this page, I set the Filter in the Dataset to "Owner Is Logged In User" and it works for retrieving the appropriate filtered data by the person that originally created it and loading this data into the table. Then, When the user/creator clicks on a row he/she is taken to the Dynamic Page which displays the Item that they created . Once on this dynamic page the owner/creator can edit this items listing.
However, when using a Dynamic Page, we are not given the ability to use the Filter By "Owner Is Logged In User" option in the Dataset. Unfortunately, Any other member can copy this URL and see this info and edit it. I need to be able to redirect or hide the content on this dynamic page if someone other than the Author is trying to view it.
I am trying to find some code to make this happen. Something like :
If Users.currentUser.id = owner (or something)
with a "then" or "else" added to implement some other action of redirect or hiding capability
I've been looking for 2 days now how to make this work and i have nothing. I have been coding for almost 15 years in ASP.NET , Visual Basic, ADO, SQL, and more, but i just can't seem to find your appropriate code or method for this.
Thank you in advance for anyone who is taking time to read this and potentially help.