Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Page Associate role not working

UserPost

6:00 pm
October 24, 2010


jgrn307

Member

posts 7

1

I've had intermittent success with page associate role — right now, with Wordpress 3.0.1 and RS 1.3.RC6, its simply not working.  I have a group with a Page Author role, and have assigned a page to have a Page Associate Role, and there is no ability to add subpages.  The only way I've gotten any level of functionality along these lines is assigning a group as a page editor for a page + subpages.  Help!  I want my users to be able to add subpages of a given page, but not add subpages of ANOTHER user's page nor be able to edit/delete other user's pages of the same group.


12:58 pm
October 26, 2010


Kevin

Admin

posts 2503

2

Thanks for the report. To restore the intended Page Associate functionality, edit role-scoper/hardway/hardway_rs.php as follows:

change:

$query = apply_filters('objects_request_rs', $query, 'post', $post_type, array( 'skip_teaser' => true ) );

to:

$_args = array( 'skip_teaser' => true );

if ( in_array( $GLOBALS['pagenow'], array( 'post.php', 'post-new.php' ) ) ) {
   $_args['alternate_reqd_caps'][0] = array( "create_child_{$post_type}s" );
}

$query = apply_filters('objects_request_rs', $query, 'post', $post_type, $_args );

About the Agapetry forum

Currently Online:

11 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1248

Posts: 5657

Members:

There are 1260 members

There are 1 guests


Kevin has made 2503 posts

Top Posters:

metal450 - 178

Ragnar - 108

YikYak - 70

whiteorb - 49

Daisy - 35

Administrator: Kevin | Moderators: Kevin