个人资料管理 [英] Profile Management

查看:76
本文介绍了个人资料管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个具有多个具有不同角色和权限的用户的Web应用程序,并试图向该用户动态添加权限
例子
如果我有要为其提供查看选项的普通用户
和员工将来查看,创建,更新选项,如果我也想给普通用户创建选项,也应该这样做.

我没有确切的想法去做.我是初学者,请帮助我提出您的建议.

根据我的想法,我创建了一个数据库,其中提到了role(varchar),create(bit),delete(bit),update(bit).

请帮助我进一步进行
为了使其易于使用,以便前端用户可以更改权限

HI i am trying to create a web application with multiple users who have different roles and permissions and also am trying to add dynamically the permissions to the user
example
if i have a normal user whom i am giving view option
and employee view,create,update option in future if i want to give the normal user create option also it should be done.

i am not getting exactly the idea to do .i am a beginner please help me with your suggestions.

according to the idea i have i have create a database where i mention role(varchar),create(bit),delete(bit),update(bit).

please help me to proceed further
to make it user friendly so that the front end user can change the permissions

推荐答案

您应定义以下角色:用户,管理员,编辑者等.所有用户的基本表.然后为角色分配权限.这将在您的代码中完成,在代码中您将检查角色,然后确定权限.

为用户分配角色,然后继续. :)

搜索基于角色的安全性",您将发现一些不错的结果.
You should define the roles: user, admin, editor etc. That will act as a base table for all the users. Then assign rights to the roles. This will be done in your code where you will check for the roles and then decide the permissions.

Assign roles to the users and proceed. :)

Search for "role based security" and you will find some decent results to begin with.


这篇关于个人资料管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆