I am currently developing a web application that requires multiple users to connect, with one designated as the admin. Access to the next stage can only be granted by the admin.
As I consider how to implement access control, I reflect on my initial approach. In the first version, I used an ajax get request triggered by a user clicking the next button. The process involved checking for a specific word and granting access if present, with manual page modifications required by the admin. Now, I aim to streamline this process and enhance user-friendliness by automating it (eliminating the need for the admin to manually edit code).
My proposed solution involves incorporating radio boxes which the admin can use to allow or deny access. To achieve this, I plan to execute an ajax post request to the server when the admin makes their selection, subsequently making necessary keyword adjustments on a hidden page. Is this approach viable, or do I need to reconsider?
Your input is greatly appreciated. Thank you for your time.