witchypaws
Member
Hi guys
I have no clue where to start with this one
I have two tables, one projects and one project fees
Project fees has an element called project name which is a dropdown that references the project that the fee belongs to and it is locked down so the logged in user can only see their own projects when attaching a fee to a project.
I worked out how to lock it to the user by putting this code
where {thistable}.proj_user_name = {$my->id}
in the Date - where box in the details.
This is all working beautifully. If a user logs in and creates a project then goes to create the fees associated with the project, they can only see their own projects to choose.
BUT NOW
We need the three super admins on the site to be able to login and edit and choose the same projects available to the users but they can't because they are NOT the user who created the project, therefore the dropdown does not have any projects to choose.
What would I have to do to enable this please
I will need a code sample because I have no clue how to start this
Any help appreciated
Thanks
Jacqui
I have no clue where to start with this one
I have two tables, one projects and one project fees
Project fees has an element called project name which is a dropdown that references the project that the fee belongs to and it is locked down so the logged in user can only see their own projects when attaching a fee to a project.
I worked out how to lock it to the user by putting this code
where {thistable}.proj_user_name = {$my->id}
in the Date - where box in the details.
This is all working beautifully. If a user logs in and creates a project then goes to create the fees associated with the project, they can only see their own projects to choose.
BUT NOW
We need the three super admins on the site to be able to login and edit and choose the same projects available to the users but they can't because they are NOT the user who created the project, therefore the dropdown does not have any projects to choose.
What would I have to do to enable this please
I will need a code sample because I have no clue how to start this
Any help appreciated
Thanks
Jacqui