如何登录到数据库的用户的pereview特殊形式

问题描述:

我有软件的用户和管理人员,每个用户都有用户名和密码,
每个用户都可以使用软件的某些部分,例如当用户登录软件时,
显示可以运行的软件.
并且当管理层确定要更改此部分时,无需对代码进行大量更改.

i have user & management for software,each user have username & password,
each user can work with some part of software,i like when user log in to software,
show the of software that can work it.
and when management Determine to change this part,don''t need to high change in code.

您需要在数据库中实现权限.您将需要一个用于权限,可能的操作等的表,以便您始终可以使用数据库来管理权限.
You need to implement permissions in the database. You''ll need a table for permissions, possible actions, etc, so that you can always use the db to manage your permissions.