Here's the scenario:
There's a list on my SP site, call it TheList.
I'd like to display certain rows of the list, a view, based on info about the current user.
If that current user is an "admin" I'd like to display all rows in the list - the AllRows view.
If the current user is not an "admin" I'd like to only display rows that that user created.
There is nothing in the user's SP profile or LDAP profile that would identify them as an admin.
I'd like to create a list called MyAdmins and put users in that list who I say are admins.
I'd like a user who's in the MyAdmins list to see all rows in TheList. I.e., the AllRows view.
I'd like a user who's not in the MyAdmins list to see rows of TheList where they were the creator of that row.
What are my options for accomplishing this? There is probably more than one way to make this happen.
At a high level I think (maybe) I want to create a piece of logic/code that performs these tests, returns a view name to be used when displaying the list, and somehow tie that piece of logic to the list.
Your thoughts? Thanks