首页
话题
动态
专家
文章
作者
公告
更多
积分规则
登录 或 注册
首页
话题
动态
专家
文章
作者
公告
积分规则
发表新帖
发表新帖
ASP.NET MVC 3: How to get User's Role in a Controller Method?
后端
未结
关注
3
933
醉梦人生
2020-12-30 04:16
I want to be able to
Get a list of roles of the current authenticated user.
Filter the data provided to that user based on their role.
3条回答
心在旅途
(楼主)
2020-12-30 04:42
Roles.GetRolesForUser(User.Identity.Name)
0
讨论(0)
查看其它3个回答
发布评论:
提交评论
加载中...
验证码
看不清?
提交回复
热议问题