ArticleDirectory
I don't know if this works. Please give me some advice.
Posted on sadly_lee read (147) Comments (3) EDIT favorites to 365key category:. Net notes Comment # Re: a user permission management model is designed. Ged users directly include permissions;
You need to include users/roles with users to achieve record-level control.
# Re: designed a user permission management modelI used to perform simple permission management, which is similar to what you do now. but now I feel that it is not enough, and the granularity of control is not small enough. I am planning to make some changes and talk more recently.
The following articles are worth your reference:
Http://www.jdon.com/jive/article.jsp? Forum = 46 & Thread = 7309
Http://www.cnblogs.com/nehu/archive/2005/06/20/177942.aspx
Http://blog.csdn.net/beegee/archive/2004/08/24/83785.aspx
# Re: designed a user permission management modelDongdong uses guid as the ID of each table to facilitate data merging and prevent concurrency. Some fields are optional based on different programming implementations. I have used Programming to Implement this permission management module, cascade authorization is used for each authorization. The approximate table structure is as follows:
User table: userid name enable
Menu table: menuid name parentid ismenu
Role table: actorid name parentid
Role permission table: actorid menuid enable (optional)
User Role table: userid actorid enable (optional)