Skip to content

Commit

Permalink
Capabilities update
Browse files Browse the repository at this point in the history
  • Loading branch information
caercam committed May 8, 2016
1 parent beee3b2 commit cf4398d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions includes/config/wpmoly-admin-menu.php
Expand Up @@ -18,7 +18,7 @@
'page' => array(
'page_title' => WPMOLY_NAME,
'menu_title' => __( 'Movies', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'edit_posts',
'menu_slug' => 'wpmovielibrary',
'function' => null,
'icon_url' => 'none',
Expand All @@ -30,7 +30,7 @@
'dashboard' => array(
'page_title' => __( 'Your library', 'wpmovielibrary' ),
'menu_title' => __( 'Your library', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'edit_posts',
'menu_slug' => 'wpmovielibrary',
'function' => 'WPMOLY_Dashboard::dashboard',
'condition' => null,
Expand All @@ -57,7 +57,7 @@
'all_movies' => array(
'page_title' => __( 'All Movies', 'wpmovielibrary' ),
'menu_title' => __( 'All Movies', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'edit_posts',
'menu_slug' => 'edit.php?post_type=movie',
'function' => null,
'condition' => null,
Expand All @@ -70,7 +70,7 @@
'new_movie' => array(
'page_title' => __( 'Add New', 'wpmovielibrary' ),
'menu_title' => __( 'Add New', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'create_posts',
'menu_slug' => 'post-new.php?post_type=movie',
'function' => null,
'condition' => null,
Expand All @@ -83,7 +83,7 @@
'collections' => array(
'page_title' => __( 'Collections', 'wpmovielibrary' ),
'menu_title' => __( 'Collections', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'manage_categories',
'menu_slug' => 'edit-tags.php?taxonomy=collection&post_type=movie',
'function' => null,
'condition' => create_function('', 'return wpmoly_o( "enable-collection" );'),
Expand All @@ -96,7 +96,7 @@
'genres' => array(
'page_title' => __( 'Genres', 'wpmovielibrary' ),
'menu_title' => __( 'Genres', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'manage_categories',
'menu_slug' => 'edit-tags.php?taxonomy=genre&post_type=movie',
'function' => null,
'condition' => create_function('', 'return wpmoly_o( "enable-genre" );'),
Expand All @@ -109,7 +109,7 @@
'actors' => array(
'page_title' => __( 'Actors', 'wpmovielibrary' ),
'menu_title' => __( 'Actors', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'manage_categories',
'menu_slug' => 'edit-tags.php?taxonomy=actor&post_type=movie',
'function' => null,
'condition' => create_function('', 'return wpmoly_o( "enable-actor" );'),
Expand All @@ -122,7 +122,7 @@
'importer' => array(
'page_title' => __( 'Import Movies', 'wpmovielibrary' ),
'menu_title' => __( 'Import Movies', 'wpmovielibrary' ),
'capability' => 'manage_options',
'capability' => 'create_posts',
'menu_slug' => 'wpmovielibrary-import',
'function' => 'WPMOLY_Import::import_page',
'condition' => null,
Expand Down

0 comments on commit cf4398d

Please sign in to comment.