How to design permission control mechanism in a system (2)

xiaoxiao2021-03-06  61

Security.xml

Judging the permissions of a user: 1. Take an action ID2. Take the role to which the user belongs 3. Deconstrate whether the role allows Action, the security start, the prohibited priority is allowed to allow 4.1 Allow, to determine if the user is forbidden, the Action 4.2 is prohibited, Determine if the user allows the action

Note: 1.Disable: The default value is false. This property is not a must, indicating whether the operation is forbidden to be, for example, user LimitGuest, which is original to belong 4, with a viewUser permission, but disable = "true" can not be used-> < ! - Operation ->

security.dtd <

! Entity% Standardattribute "ID NMTOKEN #Required Name Nmtoken #Required Display Cdata #Required">

! Attlist user-action id nmtokens #Required Disable (true | false)" false ">

转载请注明原文地址:https://www.9cbs.com/read-112564.html

New Post(0)