So I have my "user" table in the DB, that is used for the "user registration system" (with the relevant fields).
Here is what I am struggling with, if anyone has any ideas, it will be appreciated:
- So a user can register himself/herself - that is ok,
- A specific user on the system MUST be able to "manually" register/add a new user - this is what I'm struggling with
If I log in as ADMIN:
- I can "manually" register the user, the system then redirects to a detail page to capture detail information about the person.
- The "Page_Redirecting" function work as intended (when logged in as "Admin"),
- I can capture the detail information as required, no problem, i.e. localhost\myurl\userdetailadd.php?showmaster=user&fk_userid=123&other_paramid=2)
- NOTE: The ?showmaster=user&fk_userid=123 shows up in the URL).
BUT when I log in as the USER (handling registrations "manually"):
- I can "manually" register the user BUT I cannot set the permissions (I need to be able to set the permissions)
- The system then redirects to the detail page to capture detail information about the person, EXCEPT for one thing, the UserID DOES NOT APPEAR in the URL parameters, i.e. localhost\myurl\userdetailadd.php?showmaster=user&fk_userid=&other_paramid=2)
- NOTE: The ?showmaster=user&fk_userid=XXXX does not show up in the URL and hence I cannot add the detail data.
How can I either solve this, OR assign "ADMIN" right to this user.
I have read the Advanced Security, and Sever events in the help file, but I'm still missing something. To try and assign something in "TablePermission_Loading" does not seem to work the way I need it to work. Any ideas would be greatly appreciated.