Add proper permissions to admin role

This commit is contained in:
Brian Miyaji
2014-01-22 05:05:23 +11:00
parent 16677ff2a5
commit 86b06e3ec6
5 changed files with 83 additions and 35 deletions

View File

@@ -14,7 +14,7 @@ function sportspress_calendar_post_init() {
'rewrite' => array( 'slug' => get_option( 'sp_calendar_slug', 'calendars' ) ),
'show_in_menu' => 'edit.php?post_type=sp_event',
'show_in_admin_bar' => true,
// 'capability_type' => 'sp_calendar'
'capability_type' => 'sp_calendar'
);
register_post_type( 'sp_calendar', $args );
}

View File

@@ -14,7 +14,7 @@ function sportspress_table_post_init() {
'rewrite' => array( 'slug' => get_option( 'sp_table_slug', 'tables' ) ),
'show_in_menu' => 'edit.php?post_type=sp_team',
'show_in_admin_bar' => true,
// 'capability_type' => 'sp_table'
'capability_type' => 'sp_table'
);
register_post_type( 'sp_table', $args );
}