class documentation
class AccessableObject(object): (source)
Known subclasses: zms._accessmanager.AccessableContainer
Mixin providing access-control helpers for ZMS objects.
| Method | get |
Resolve effective language permissions for a user on this object. |
| Method | get |
Resolve effective user roles for this object. |
| Method | get |
Return all users with effective roles and languages on this object. |
| Method | has |
Check whether the authenticated user can view this object. |
| Method | has |
Return whether public access is effectively allowed for this object. |
| Method | has |
Return whether this object is explicitly marked as restricted. |
| Method | manage |
Update properties of the currently authenticated user. |
| Method | synchronize |
Synchronize public-access permissions with the current restriction flags. |
| Method | zmi |
Preprocess ZMI page requests and enforce access restrictions. |
| Class Variable | manage_user |
Undocumented |
Resolve effective language permissions for a user on this object.
| Parameters | |
| user | User object or identifier |
| aq | Whether to inspect parent nodes |
| Returns | |
| list | Allowed language ids |
Resolve effective user roles for this object.
| Parameters | |
| user | User object or identifier |
| aq | Whether to inspect parent nodes |
| resolve:bool | Whether to resolve security roles recursively |
| Returns | |
| list | Effective role ids |
Return all users with effective roles and languages on this object.
| Parameters | |
| REQUEST | Optional request object |
| Returns | |
| dict | Mapping of user ids to access information |
Check whether the authenticated user can view this object.
| Parameters | |
| REQUEST | Zope request object |
| Returns | |
| bool | True if access is granted |
Update properties of the currently authenticated user.
| Parameters | |
| btn:str | Action button id |
| lang:str | UI language id |
| REQUEST | Zope request object |
| RESPONSE | Zope response object |