简体   繁体   English

ASP.NET成员身份角色-事件管理

[英]ASP.NET membership roles - event management

I'm working on a project for an events site. 我正在为活动网站开发项目。 I want to create it so that users can create an event and they become the admin for only that event, and they can authorise others as fellow admins (FB style), meanwhile they are only a user for. 我想创建它,以便用户可以创建一个事件,并且他们仅成为该事件的管理员,并且可以将其他人授权为同级管理员(FB风格),同时他们只是该用户的用户。 Is it possible to use the existing roles tools built into .NET to do this? 是否可以使用.NET中内置的现有角色工具来执行此操作?

Thanks 谢谢

The comments provided are pretty useful (create your own table for it\\creating roles on the fly). 提供的注释非常有用(为其创建自己的表\\动态创建角色)。 In short, the functionality you are looking for is not currently available in the existing Universal Role Provider packaged with .NET. 简而言之,.NET附带的现有Universal Role Provider当前不提供您要寻找的功能。 However, the URP is intended to only be a starting framework for you to work with\\edit as you see fit. 但是,URP只是作为您认为合适时使用\\ edit的起始框架。 I would use a combination of these 2 suggestions, using the built in role provider tables to generate roles on the fly, and use a custom table to manage that hierarchy. 我将这两个建议结合使用,使用内置的角色提供程序表动态生成角色,并使用自定义表管理该层次结构。

Hope this helps, and welcome to Stack Overflow! 希望对您有所帮助,并欢迎您使用Stack Overflow!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM