Skip to content

Commit

Permalink
(feat): default config
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonvanWijhe committed Nov 7, 2024
1 parent a6dde15 commit 21438e4
Showing 1 changed file with 8 additions and 59 deletions.
67 changes: 8 additions & 59 deletions config/user-roles.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

'core_roles' => [
'administrator' => true,
'editor' => false,
'author' => false,
'contributor' => false,
'subscriber' => false,
'editor' => true,
'author' => true,
'contributor' => true,
'subscriber' => true,
],

/*
Expand All @@ -46,39 +46,21 @@
'superuser' => [
'display_name' => 'Superuser',
'caps' => [
'read',
'edit_dashboard',
'edit_files',
'unfiltered_html',
'upload_files',
'manage_categories',
'edit_theme_options',
'moderate_comments',
'copy_posts',
'my_custom_cap',
],
'post_type_caps' => [
'post',
'page',
'tribe_events',
'tribe_organizer',
'tribe_venue',
],
'cap_groups' => [
'gravityforms',
'wpseo',
'users',
'related_caps',
],
],
'visitor' => [
'display_name' => 'Bezoeker',
'display_name' => 'Visitor',
'clone' => [
'from' => 'subscriber',
'add' => [
'caps' => [
'yard_hide_admin_bar',
'yard_redirect_home_after_login',
'yard_prevent_admin_access',
],
'caps' => [],
'post_type_caps' => [],
'cap_groups' => [],
],
Expand All @@ -102,13 +84,6 @@
*/

'cap_groups' => [
'plugins' => [
'activate_plugins',
'delete_plugins',
'edit_plugins',
'install_plugins',
'update_plugins',
],
'users' => [
'create_users',
'delete_users',
Expand All @@ -124,32 +99,6 @@
'switch_themes',
'update_themes',
],
'gravityforms' => [
'gravityforms_create_form',
'gravityforms_delete_forms',
'gravityforms_edit_forms',
'gravityforms_preview_forms',
'gravityforms_view_entries',
'gravityforms_edit_entries',
'gravityforms_delete_entries',
'gravityforms_view_entry_notes',
'gravityforms_edit_entry_notes',
],
'wpseo' => [
'wpseo_bulk_edit',
'wpseo_manage_options',
'wpseo_bulk_edit',
'wpseo_manage_options',
'edit_redirection',
'edit_redirections',
'edit_others_redirections',
'publish_redirections',
'read_redirection',
'read_private_redirections',
'delete_redirection',
'delete_others_redirections',
'delete_published_redirections',
],
],

];

0 comments on commit 21438e4

Please sign in to comment.