Make WordPress Core

Changeset 9715


Ignore:
Timestamp:
11/15/2008 06:04:09 PM (16 years ago)
Author:
ryan
Message:

Check proper caps when publising a page. Props DD32. fixes #8208

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r9712 r9715  
    884884    $col_count = count($columns) - count($hidden);
    885885    $m = ( isset($mode) && 'excerpt' == $mode ) ? 'excerpt' : 'list';
    886     $can_publish = current_user_can('publish_posts');
     886    $can_publish = current_user_can("publish_{$type}s");
    887887    $core_columns = array( 'cb' => true, 'date' => true, 'title' => true, 'categories' => true, 'tags' => true, 'comments' => true, 'author' => true );
    888888
     
    933933
    934934        ob_start();
    935         $authors = get_editable_user_ids( $current_user->id ); // TODO: ROLE SYSTEM
     935        $authors = get_editable_user_ids( $current_user->id, true, $type ); // TODO: ROLE SYSTEM
    936936        if ( $authors && count( $authors ) > 1 ) :
    937937            $users_opt = array('include' => $authors, 'name' => 'post_author', 'class'=> 'authors', 'multi' => 1);
Note: See TracChangeset for help on using the changeset viewer.