Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




RC2 and RC3 behaviors

UserPost

7:52 pm
October 13, 2010


helenyhou

Member

posts 8

1

I've noticed a couple of funky things. In both 1.3RC2 and RC3, users with the regular WP role of editor cannot create top-level pages. The problem goes away with Role Scoper deactivated.

In RC3, I can't save sitewide Role Defaults (though I could in RC2). I also notice that, although I have it set to user administrators only, other user types (editor) can still set role permissions and even options. Am I missing a setting somewhere?

12:57 am
October 14, 2010


Kevin

Admin

posts 2503

2

For the inability to save top-level pages, edit role-scoper/admin/filters-admin_rs.php as follows:

change:

$reqd_caps = ( 'author' == $top_pages_locked ) ? array( $publish_cap ) : array( $edit_cap );

to:

$reqd_caps = ( 'author' === $top_pages_locked ) ? array( $post_type_obj->cap->publish_posts ) : array( $post_type_obj->cap->edit_others_posts );

I will update the release candidate shortly.

I'm not seeing the role/option access error. Does your editor role have the manage_options capability?

1:28 am
October 14, 2010


Kevin

Admin

posts 2503

3

For the failure to modify default site options, edit role-scoper/submittee_rs.php as follows:

change:

if ( ! in_array( $_GET["page"], array( 'rs-options', 'rs-site_options') ) )

to:

if ( ! in_array( $_GET["page"], array( 'rs-options', 'rs-site_options', 'rs-default_options') ) )

This looks to me like an old bug; I don't see how RC2 would have saved the changes either.

9:38 am
October 14, 2010


helenyhou

Member

posts 8

4

RC4 does indeed fix the top-level pages issue. My editor role does indeed have manage_options turned on - I'll leave that turned off and hope that I didn't have a reason for turning it on in the first place! Thanks for that.

I guess it's possible that RC2 didn't save those options, either… that might be more a testament to my current mental state than your plugin :) RC4 is working for the most part, but I do notice that this option will not save: Non-editors see other users' attached uploads. I'm not testing all of the options, so that's the only one I've encountered.

11:57 am
October 16, 2010


Kevin

Admin

posts 2503

5

I wasn't able to confirm any problem with that option, but did identify and fix a problem with modifying type-specific Default Site Options, such as teaser settings. The fix is in Role Scoper 1.3.RC5.


About the Agapetry forum

Currently Online:

14 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