The permissions of each element of the interface also need to be controlled. For example, a query user's interface contains query user button, add User button, delete User button, different roles we have to assign different permissions
An HTML page has many elements, such as
,
Wait These elements form an HTML page. In Web development, permission control is used by every system. The permissions of each element of the interface also need to be controlled. For example, a query user's interface has a query user button, add user buttons, delete user buttons, different roles we have to assign different permissions, such as the general user only the right to query the user button, the administrator has to add user buttons, query the user button permissions; Super Administrator query User button, add User button, The right to delete a user button. How do you make these three users get three different forms of interface after logging in? This is the time to use HTML elements for permission control.
It takes a few steps to achieve this:
1. The scanning interface retrieves the information of the elements to be assigned to the database.
2. Assign element permissions.
3. Interface loading.
4. Integration.