|
12 | 12 | $policies['1']= $xpdo->newObject(modAccessPolicy::class);
|
13 | 13 | $policies['1']->fromArray([
|
14 | 14 | 'id' => 1,
|
15 |
| - 'name' => 'Resource', |
16 |
| - 'description' => 'MODX Resource Policy with all attributes.', |
| 15 | + 'name' => 'policy_resource_name', |
| 16 | + 'description' => 'policy_resource_desc', |
17 | 17 | 'parent' => 0,
|
18 | 18 | 'class' => '',
|
19 | 19 | 'data' => '{"add_children":true,"create":true,"copy":true,"delete":true,"list":true,"load":true,"move":true,"publish":true,"remove":true,"save":true,"steal_lock":true,"undelete":true,"unpublish":true,"view":true}',
|
|
23 | 23 | $policies['2']= $xpdo->newObject(modAccessPolicy::class);
|
24 | 24 | $policies['2']->fromArray([
|
25 | 25 | 'id' => 2,
|
26 |
| - 'name' => 'Administrator', |
27 |
| - 'description' => 'Context administration policy with all permissions.', |
| 26 | + 'name' => 'policy_administrator_name', |
| 27 | + 'description' => 'policy_administrator_desc', |
28 | 28 | 'parent' => 0,
|
29 | 29 | 'class' => '',
|
30 | 30 | 'data' => '{"about":true,"access_permissions":true,"actions":true,"change_password":true,"change_profile":true,"charsets":true,"class_map":true,"components":true,"content_types":true,"countries":true,"create":true,"credits":true,"customize_forms":true,"dashboards":true,"database":true,"database_truncate":true,"delete_category":true,"delete_chunk":true,"delete_context":true,"delete_document":true,"delete_eventlog":true,"delete_plugin":true,"delete_propertyset":true,"delete_role":true,"delete_snippet":true,"delete_template":true,"delete_tv":true,"delete_user":true,"directory_chmod":true,"directory_create":true,"directory_list":true,"directory_remove":true,"directory_update":true,"edit_category":true,"edit_chunk":true,"edit_context":true,"edit_document":true,"edit_locked":true,"edit_plugin":true,"edit_propertyset":true,"edit_role":true,"edit_snippet":true,"edit_template":true,"edit_tv":true,"edit_user":true,"element_tree":true,"empty_cache":true,"error_log_erase":true,"error_log_view":true,"events":true,"export_static":true,"file_create":true,"file_list":true,"file_manager":true,"file_remove":true,"file_tree":true,"file_update":true,"file_upload":true,"file_unpack":true,"file_view":true,"flush_sessions":true,"frames":true,"help":true,"home":true,"import_static":true,"languages":true,"lexicons":true,"list":true,"load":true,"logout":true,"logs":true,"menus":true,"menu_reports":true,"menu_security":true,"menu_site":true,"menu_support":true,"menu_system":true,"menu_tools":true,"menu_user":true,"messages":true,"namespaces":true,"new_category":true,"new_chunk":true,"new_context":true,"new_document":true,"new_document_in_root":true,"new_plugin":true,"new_propertyset":true,"new_role":true,"new_snippet":true,"new_static_resource":true,"new_symlink":true,"new_template":true,"new_tv":true,"new_user":true,"new_weblink":true,"packages":true,"policy_delete":true,"policy_edit":true,"policy_new":true,"policy_save":true,"policy_template_delete":true,"policy_template_edit":true,"policy_template_new":true,"policy_template_save":true,"policy_template_view":true,"policy_view":true,"property_sets":true,"providers":true,"publish_document":true,"purge_deleted":true,"remove":true,"remove_locks":true,"resource_duplicate":true,"resourcegroup_delete":true,"resourcegroup_edit":true,"resourcegroup_new":true,"resourcegroup_resource_edit":true,"resourcegroup_resource_list":true,"resourcegroup_save":true,"resourcegroup_view":true,"resource_quick_create":true,"resource_quick_update":true,"resource_tree":true,"save":true,"save_category":true,"save_chunk":true,"save_context":true,"save_document":true,"save_plugin":true,"save_propertyset":true,"save_role":true,"save_snippet":true,"save_template":true,"save_tv":true,"save_user":true,"search":true,"set_sudo":true,"settings":true,"sources":true,"source_delete":true,"source_edit":true,"source_save":true,"source_view":true,"steal_locks":true,"tree_show_element_ids":true,"tree_show_resource_ids":true,"undelete_document":true,"unlock_element_properties":true,"unpublish_document":true,"usergroup_delete":true,"usergroup_edit":true,"usergroup_new":true,"usergroup_save":true,"usergroup_user_edit":true,"usergroup_user_list":true,"usergroup_view":true,"view":true,"view_category":true,"view_chunk":true,"view_context":true,"view_document":true,"view_element":true,"view_eventlog":true,"view_offline":true,"view_plugin":true,"view_propertyset":true,"view_role":true,"view_snippet":true,"view_sysinfo":true,"view_template":true,"view_tv":true,"view_unpublished":true,"view_user":true,"workspaces":true}',
|
|
34 | 34 | $policies['3']= $xpdo->newObject(modAccessPolicy::class);
|
35 | 35 | $policies['3']->fromArray([
|
36 | 36 | 'id' => 3,
|
37 |
| - 'name' => 'Load Only', |
38 |
| - 'description' => 'A minimal policy with permission to load an object.', |
| 37 | + 'name' => 'policy_load_only_name', |
| 38 | + 'description' => 'policy_load_only_desc', |
39 | 39 | 'parent' => 0,
|
40 | 40 | 'class' => '',
|
41 | 41 | 'data' => '{"load":true}',
|
|
45 | 45 | $policies['4']= $xpdo->newObject(modAccessPolicy::class);
|
46 | 46 | $policies['4']->fromArray([
|
47 | 47 | 'id' => 4,
|
48 |
| - 'name' => 'Load, List and View', |
49 |
| - 'description' => 'Provides load, list and view permissions only.', |
| 48 | + 'name' => 'policy_load_list_view_name', |
| 49 | + 'description' => 'policy_load_list_view_desc', |
50 | 50 | 'parent' => 0,
|
51 | 51 | 'class' => '',
|
52 | 52 | 'data' => '{"load":true,"list":true,"view":true}',
|
|
56 | 56 | $policies['5']= $xpdo->newObject(modAccessPolicy::class);
|
57 | 57 | $policies['5']->fromArray([
|
58 | 58 | 'id' => 5,
|
59 |
| - 'name' => 'Object', |
60 |
| - 'description' => 'An Object policy with all permissions.', |
| 59 | + 'name' => 'policy_object_name', |
| 60 | + 'description' => 'policy_object_desc', |
61 | 61 | 'parent' => 0,
|
62 | 62 | 'class' => '',
|
63 | 63 | 'data' => '{"load":true,"list":true,"view":true,"save":true,"remove":true}',
|
|
67 | 67 | $policies['6']= $xpdo->newObject(modAccessPolicy::class);
|
68 | 68 | $policies['6']->fromArray([
|
69 | 69 | 'id' => 6,
|
70 |
| - 'name' => 'Element', |
71 |
| - 'description' => 'MODX Element policy with all attributes.', |
| 70 | + 'name' => 'policy_element_name', |
| 71 | + 'description' => 'policy_element_desc', |
72 | 72 | 'parent' => 0,
|
73 | 73 | 'class' => '',
|
74 | 74 | 'data' => '{"add_children":true,"create":true,"delete":true,"list":true,"load":true,"remove":true,"save":true,"view":true,"copy":true}',
|
|
78 | 78 | $policies['7']= $xpdo->newObject(modAccessPolicy::class);
|
79 | 79 | $policies['7']->fromArray([
|
80 | 80 | 'id' => 7,
|
81 |
| - 'name' => 'Content Editor', |
82 |
| - 'description' => 'Context administration policy with limited, content-editing related Permissions, but no publishing.', |
| 81 | + 'name' => 'policy_content_editor_name', |
| 82 | + 'description' => 'policy_content_editor_desc', |
83 | 83 | 'parent' => 0,
|
84 | 84 | 'class' => '',
|
85 | 85 | 'data' => '{"change_profile":true,"class_map":true,"countries":true,"edit_document":true,"frames":true,"help":true,"home":true,"load":true,"list":true,"logout":true,"menu_reports":true,"menu_site":true,"menu_support":true,"menu_tools":true,"menu_user":true,"resource_duplicate":true,"resource_tree":true,"save_document":true,"source_view":true,"tree_show_resource_ids":true,"view":true,"view_document":true,"view_template":true,"new_document":true,"delete_document":true}',
|
|
89 | 89 | $policies['8']= $xpdo->newObject(modAccessPolicy::class);
|
90 | 90 | $policies['8']->fromArray([
|
91 | 91 | 'id' => 8,
|
92 |
| - 'name' => 'Media Source Admin', |
93 |
| - 'description' => 'Media Source administration policy.', |
| 92 | + 'name' => 'policy_media_source_admin_name', |
| 93 | + 'description' => 'policy_media_source_admin_desc', |
94 | 94 | 'parent' => 0,
|
95 | 95 | 'class' => '',
|
96 | 96 | 'data' => '{"create":true,"copy":true,"load":true,"list":true,"save":true,"remove":true,"view":true}',
|
|
100 | 100 | $policies['9']= $xpdo->newObject(modAccessPolicy::class);
|
101 | 101 | $policies['9']->fromArray([
|
102 | 102 | 'id' => 9,
|
103 |
| - 'name' => 'Media Source User', |
104 |
| - 'description' => 'Media Source user policy, with basic viewing and using - but no editing - of Media Sources.', |
| 103 | + 'name' => 'policy_media_source_user_name', |
| 104 | + 'description' => 'policy_media_source_user_desc', |
105 | 105 | 'parent' => 0,
|
106 | 106 | 'class' => '',
|
107 | 107 | 'data' => '{"load":true,"list":true,"view":true}',
|
|
111 | 111 | $policies['10']= $xpdo->newObject(modAccessPolicy::class);
|
112 | 112 | $policies['10']->fromArray([
|
113 | 113 | 'id' => 10,
|
114 |
| - 'name' => 'Developer', |
115 |
| - 'description' => 'Context administration policy with most Permissions except Administrator and Security functions.', |
| 114 | + 'name' => 'policy_developer_name', |
| 115 | + 'description' => 'policy_developer_desc', |
116 | 116 | 'parent' => 0,
|
117 | 117 | 'class' => '',
|
118 | 118 | 'data' => '{"about":true,"change_password":true,"change_profile":true,"charsets":true,"class_map":true,"components":true,"content_types":true,"countries":true,"create":true,"credits":true,"customize_forms":true,"dashboards":true,"database":true,"delete_category":true,"delete_chunk":true,"delete_context":true,"delete_document":true,"delete_eventlog":true,"delete_plugin":true,"delete_propertyset":true,"delete_snippet":true,"delete_template":true,"delete_tv":true,"delete_role":true,"delete_user":true,"directory_chmod":true,"directory_create":true,"directory_list":true,"directory_remove":true,"directory_update":true,"edit_category":true,"edit_chunk":true,"edit_context":true,"edit_document":true,"edit_locked":true,"edit_plugin":true,"edit_propertyset":true,"edit_role":true,"edit_snippet":true,"edit_template":true,"edit_tv":true,"edit_user":true,"element_tree":true,"empty_cache":true,"error_log_erase":true,"error_log_view":true,"export_static":true,"file_create":true,"file_list":true,"file_manager":true,"file_remove":true,"file_tree":true,"file_update":true,"file_upload":true,"file_unpack":true,"file_view":true,"frames":true,"help":true,"home":true,"import_static":true,"languages":true,"lexicons":true,"list":true,"load":true,"logout":true,"logs":true,"menu_reports":true,"menu_site":true,"menu_support":true,"menu_system":true,"menu_tools":true,"menu_user":true,"menus":true,"messages":true,"namespaces":true,"new_category":true,"new_chunk":true,"new_context":true,"new_document":true,"new_static_resource":true,"new_symlink":true,"new_weblink":true,"new_document_in_root":true,"new_plugin":true,"new_propertyset":true,"new_role":true,"new_snippet":true,"new_template":true,"new_tv":true,"new_user":true,"packages":true,"property_sets":true,"providers":true,"publish_document":true,"purge_deleted":true,"remove":true,"resource_duplicate":true,"resource_quick_create":true,"resource_quick_update":true,"resource_tree":true,"save":true,"save_category":true,"save_chunk":true,"save_context":true,"save_document":true,"save_plugin":true,"save_propertyset":true,"save_snippet":true,"save_template":true,"save_tv":true,"save_user":true,"search":true,"settings":true,"source_delete":true,"source_edit":true,"source_save":true,"source_view":true,"sources":true,"tree_show_element_ids":true,"tree_show_resource_ids":true,"undelete_document":true,"unpublish_document":true,"unlock_element_properties":true,"view":true,"view_category":true,"view_chunk":true,"view_context":true,"view_document":true,"view_element":true,"view_eventlog":true,"view_offline":true,"view_plugin":true,"view_propertyset":true,"view_role":true,"view_snippet":true,"view_sysinfo":true,"view_template":true,"view_tv":true,"view_user":true,"view_unpublished":true,"workspaces":true}',
|
|
122 | 122 | $policies['11']= $xpdo->newObject(modAccessPolicy::class);
|
123 | 123 | $policies['11']->fromArray([
|
124 | 124 | 'id' => 11,
|
125 |
| - 'name' => 'Context', |
126 |
| - 'description' => 'A standard Context policy that you can apply when creating Context ACLs for basic read/write and view_unpublished access within a Context.', |
| 125 | + 'name' => 'policy_context_name', |
| 126 | + 'description' => 'policy_context_desc', |
127 | 127 | 'parent' => 0,
|
128 | 128 | 'class' => '',
|
129 | 129 | 'data' => '{"load":true,"list":true,"view":true,"save":true,"remove":true,"copy":true,"view_unpublished":true}',
|
|
133 | 133 | $policies['12']= $xpdo->newObject(modAccessPolicy::class);
|
134 | 134 | $policies['12']->fromArray([
|
135 | 135 | 'id' => 12,
|
136 |
| - 'name' => 'Hidden Namespace', |
137 |
| - 'description' => 'Hidden Namespace policy, will not show Namespace in lists.', |
| 136 | + 'name' => 'policy_hidden_namespace_name', |
| 137 | + 'description' => 'policy_hidden_namespace_desc', |
138 | 138 | 'parent' => 0,
|
139 | 139 | 'class' => '',
|
140 | 140 | 'data' => '{"load":false,"list":false,"view":true}',
|
|
0 commit comments