Roles and policies of sevenx_multisite
This page is for administrators who manage users on a sevenx_multisite installation and want to know what the
install gave each role, and for developers who change it. It answers: which roles get which policies, which sections
and user groups are created, and who is assigned to what. The general guide to roles is
Roles and policies.
Contents
- Two places that write roles
- Sections and user groups
- Anonymous
- Member
- Editor
- Partner
- Role assignments
- Administrator preferences
Two places that write roles
| Where | When it runs | Mechanism |
|---|---|---|
siteRoles(), called through eZSiteRoles() in roles.php | while CreateSites sets up roles | returns role definitions the setup applies |
initSteps() steps 16 to 31 | in the post-install | kernel steps createContentSection, addPoliciesForRole, removePoliciesForRole, createContentObject, setSection, renameContentObject, assignUserToRole |
addPoliciesForRole creates the role when it does not exist yet (create_role defaults to true in
kernel/classes/ezsiteinstaller.php), so the Partner role is created by its first policy. The Administrator role
is not changed by the installer; it already has */*.
Policies are limited by class and section. In the step list a class or section is given by identifier or name and
resolved when the step runs (classIDbyIdentifier, sectionIDbyName), so the policies refer to the ids of the new
installation.
Sections and user groups
| Step | Result |
|---|---|
createContentSection | a section "Restricted" with the navigation part ezcontentnavigationpart |
createContentObject | a user_group "Partners" below users |
setSection | users/partners in the Restricted section |
setSection | x_archives, "the top-level Archives folder of the base data", in the Restricted section; skipped when it does not exist |
renameContentObject | object 11, "Guest accounts", renamed to "Members" |
Anonymous
| Module / function | Limitation | Source |
|---|---|---|
rss/feed | siteRoles(), assigned to the guest and anonymous accounts | |
user/login | SiteAccess: every served siteaccess except the admin and adminui | siteRoles() |
content/read | Section 3 (Media), so images embedded in article bodies render | siteRoles() |
tags/view | siteRoles(): tag links of articles and recipes | |
info-collection/read | siteRoles(): the lead form modal of the Bold templates | |
shop/buy | post-install | |
content/create | classes comment and review, section Standard, language the primary language | post-install |
ezjscore/call | FunctionList ezstarrating_rate, ezstarrating_user_has_rated, loadMore | post-install |
content/read | classes image, banner, flash, real_video, windows_media, quicktime, video, section Media | post-install |
The login policy lists bold and bold_ger too: "Without bold and bold_ger here the Bold site refuses anonymous
access even once the siteaccesses are registered."
Member
| Module / function | Limitation |
|---|---|
content/read | Section 3 |
tags/view, info-collection/read | |
content/create | forum_topic below forum, section Standard |
content/create | forum_reply below forum_topic, section Standard |
content/create | comment below article, blog_post or article_mainpage, section Standard |
content/edit | comment, forum_topic, forum_reply, section Standard, Owner self |
user/selfedit, user/password, notification/use, ezjscore/call | |
user2fa/setup, user2fa/verify | only when sevenx_authentication_2fa is installed |
Editor
The post-install first removes the Editor role's content/* policy, then adds:
| Module / function | Limitation |
|---|---|
content/create | 24 classes (folder, link, file, product, feedback_form, frontpage, the three article classes, blog, poll, multicalendar, documentation_page, infobox, the media classes, gallery, forum, forums, event_calendar, banner, image) below a folder |
content/create | blog_post below blog; forum_topic below forum; event below event_calendar; image below gallery |
content/create | folder, link, feedback_form, frontpage, documentation_page, gallery, event_calendar, multicalendar, forums below a frontpage |
websitetoolbar/use | 24 classes |
content/edit | |
content/read | sections Standard, Restricted and Media |
notification/use, content/manage_locations, ezodf/*, content/diff, content/versionread, content/versionremove, content/remove, content/translate, rss/feed, content/bookmark, content/pendinglist, content/dashboard, content/view_embed | |
uiswitch/language, uiswitch/design | the interface language and design choices of the admin toolbar |
ezjscore/call | FunctionList ezjscnode, the node data calls of the sub-items list and the online editor |
user2fa/setup, user2fa/verify | only when sevenx_authentication_2fa is installed |
Note
The content/create limitations of the Editor role name the classes of sevenx_classes, not the ng_* classes of
the demo content. Check the role before giving editors the Fit & Healthy and Bold Agency content to work on.
Partner
| Module / function | Limitation |
|---|---|
content/read | section Restricted |
content/create | forum_topic below forum, forum_reply below forum_topic, comment below article, all in section Restricted |
content/edit | comment, forum_topic, forum_reply, section Restricted, Owner self |
user/selfedit, notification/use | |
user2fa/setup, user2fa/verify | only when sevenx_authentication_2fa is installed |
Role assignments
| User group | Roles |
|---|---|
users/members (the renamed "Guest accounts") | Member |
users/partners | Partner, Member, Anonymous |
users/editors | Member |
| the guest and anonymous accounts | Anonymous (from siteRoles()) |
Administrator preferences
sitePreferences() sets these preferences for the administrator account (the object with remote id
1bb4fe25487f05527efa8bfd394cecc7 in the setup's object map):
| Preference | Value |
|---|---|
admin_navigation_content | 1 |
admin_navigation_roles | 1 |
admin_navigation_policies | 1 |
admin_list_limit | 2 (the comment in the code: "The child list limit is 25 by default") |
admin_treemenu | 1 |
admin_bookmark_menu | 1 |
Related pages
- sevenx_multisite
- The multisite installer script
- Permissions for packages
- Roles and policies (guide)
- Site packages: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.