Permission tokens file

From The Smartest Wiki
Jump to: navigation, search

The permission tokens file contains a list of the tokens used by Smartest, and their requisite pairing to unique numeric IDs. The file is in password file format, and stored in System/Core/Types/usertokens.pff.

The permission tokens file is used by Smartest from revision 285 onwards. Prior versions stored this information in a table in the database.

IDs are fixed to their associated token, so for example, the token site_access always has the ID 21.

Below is the complete list of tokens, their IDs and their descriptions, as contained in the file. This will be amended by developers as more tokens are added.

id:type:scope:code:category:description
0:p:s:root_permission:SM_USERTOKEN_SYSTEM:{{ROOT!}} Carry out any action on any site.
1:p:s:author_credit:SM_USERTOKEN_USERS:Be credited as an author of a page or item
2:p:s:modify_system_settings:SM_USERTOKEN_SYSTEM:Edit values of system settings
3:p:s:add_new_pages:SM_USERTOKEN_PAGES:Add pages to the sitemap
4:p:s:remove_pages:SM_USERTOKEN_PAGES:Remove pages from the sitemap
5:p:s:create_models:SM_USERTOKEN_ITEMS:Create models
6:p:s:create_remove_properties:SM_USERTOKEN_ITEMS:Create, remove and edit item class properties
7:p:s:add_items:SM_USERTOKEN_ITEMS:Add items to existing item classes
8:p:s:delete_items:SM_USERTOKEN_ITEMS:Delete items from existing item classes
9:p:s:modify_page_properties:SM_USERTOKEN_PAGES:Edit the properties of pages, such as title, URLs, and meta information
10:p:s:modify_draft_pages:SM_USERTOKEN_PAGES:Update placeholders, containers, itemspaces & lists
11:p:s:approve_page_changes:SM_USERTOKEN_PAGES:Approve pages marked as ready for approval
12:p:s:edit_model:SM_USERTOKEN_ITEMS:Edit the basic attributes of models
13:p:s:modify_user_permissions:SM_USERTOKEN_USERS:Edit the permissions of other users
14:p:s:modify_items:SM_USERTOKEN_ITEMS:Edit Items
15:p:s:approve_item_changes:SM_USERTOKEN_ITEMS:Approve changes to items that do not belong to the user
16:p:s:publish_approved_pages:SM_USERTOKEN_PAGES:Publish changes to pages that have been modified, and those modifications accepted
17:p:s:publish_approved_items:SM_USERTOKEN_ITEMS:Publish changes to items that have been modified, and those modifications accepted
18:p:s:publish_all_pages:SM_USERTOKEN_PAGES:Publish changed pages without needing approval
19:p:s:publish_all_items:SM_USERTOKEN_ITEMS:Publish changed items without needing approval
20:p:s:modify_site_parameters:SM_USERTOKEN_SITES:Edit site parameters
21:p:s:site_access:SM_USERTOKEN_SITES:See the site upon login and be able to open it
22:p:s:modify_other_user_details:SM_USERTOKEN_USERS:Edit the details of other users
23:p:s:grant_site_access:SM_USERTOKEN_USERS:Grant access to a site to another user
24:p:g:grant_global_permissions:SM_USERTOKEN_USERS:Permission to grant permissions that will persist across all sites
25:p:s:create_sites:SM_USERTOKEN_SITES:Create new sites
26:p:s:modify_assets:SM_USERTOKEN_ASSETS:Edit existing media files
27:p:s:delete_assets:SM_USERTOKEN_ASSETS:Delete files that the user doesn't own
28:p:s:create_assets:SM_USERTOKEN_ASSETS:Add new files to the system
29:p:s:clear_pages_cache:SM_USERTOKEN_PAGES:Clear the pages cache
30:p:s:approve_assets:SM_USERTOKEN_ASSETS:Approve for specific files (assets) for use on live pages
31:p:s:create_users:SM_USERTOKEN_USERS:Create user accounts
32:p:s:publish_text_assets:SM_USERTOKEN_ASSETS:Publish text assets
33:p:s:edit_page_name:SM_USERTOKEN_PAGES:Edit page short name/slug
34:p:s:edit_item_name:SM_USERTOKEN_ITEMS:Edit item short name/slug
35:p:s:see_server_speed:SM_USERTOKEN_SYSTEM:See the server's speed rating
36:p:s:test_server_speed:SM_USERTOKEN_SYSTEM:Test/recalibrate the server's speed rating
37:p:s:edit_model__name:SM_USERTOKEN_ITEMS:Edit the plural names of models
38:p:s:edit_held_pages:SM_USERTOKEN_PAGES:Edit pages that are currently held by another user
39:p:s:edit_held_items:SM_USERTOKEN_ITEMS:Edit items that are currently held by another user
40:p:s:edit_containers_in_preview:SM_USERTOKEN_PAGES:Change the values of containers from the page preview screen
41:p:s:delete_models:SM_USERTOKEN_ITEMS:Permanently delete models and all their items
42:p:s:edit_file_group_names:SM_USERTOKEN_ASSETS:Edit file group names
43:p:s:edit_template_group_names:SM_USERTOKEN_ASSETS:Edit template group names
44:p:s:edit_file_names:SM_USERTOKEN_ASSETS:Rename files
45:p:s:edit_template_names:SM_USERTOKEN_ASSETS:Rename templates
46:p:s:require_user_password_change:SM_USERTOKEN_USERS:Require other users to change their passwords
47:p:s:edit_set_name:SM_USERTOKEN_ITEMS:Edit set short name
48:p:s:enable_site:SM_USERTOKEN_SITES:Enable a disabled site
49:p:s:disable_site:SM_USERTOKEN_SITES:Disable an enabled site
50:p:s:edit_pagegroup_name:SM_USERTOKEN_PAGES:Edit page group short name
51:p:s:modify_user_own_permissions:SM_USERTOKEN_USERS:Edit one's own permissions
52:p:s:modify_usernames:SM_USERTOKEN_USERS:Change a user's login username
53:p:s:delete_users:SM_USERTOKEN_USERS:Delete user accounts
54:p:s:delete_page_property:SM_USERTOKEN_PAGES:Delete page fields
55:p:s:clear_pageproperty_all_definitions:SM_USERTOKEN_PAGES:Clear all the values of a page field