Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Editor cannot see "Gallery" of attachments for Custom Post Type

UserPost

4:43 pm
June 28, 2011


dmb

Member

United States

posts 7

1

wordpress 3.1.3
role scoper 1.3.41

I have several custom post types on my wordpress installation.

One of my editor accounts has access to edit some pages, and also has access to edit any posts from a custom post type, called "PIPS Pages."

When this editor edits a page, they can see the WordPress "Gallery" of all the attachments that have been uploaded for that particular page. (Image: http://pbsrg.com/tempdl/agapetry/media-upload-1.jpg)

However, when this editor edits a "PIPS Page" the "Gallery" is missing (Image: http://pbsrg.com/tempdl/agapetry/media-upload-2.jpg). In fact, they can't see the "Gallery" link on any posts that are from custom post types.

I'm sure that these posts and pages have files attached to them. If I log in as admin, I can see the "Gallery" for all of them, but not if I log in as any other type of user.

I have these two options enabled:
- Non-editors see other users' attached uploads
- Non-editors see other users' unattached uploads

Can anyone tell me why the "Gallery" won't show up for my custom post types?

Any help is greatly appreciated!

Thanks!

9:42 pm
June 28, 2011


Kevin

Admin

posts 2503

2

Thanks for reporting that. It's fixed in the updated Role Scoper development code (1.3.42-dev).

11:46 am
June 29, 2011


dmb

Member

United States

posts 7

3

Kevin,

Thanks, I can now see the "Gallery" as an editor!

However, once I uploaded the development code, I got another issue:

I use the CMS Tree Page View plugin. I use the plugin to display "Pages" and my cpt "PIPS Pages" in the dashboard.

For some reason, if an editor has permission to edit at least one "Page" then they are able to see the "Tree View" link under "Pages" and "PIPS Pages." If they do not have permission to edit any "Pages" then they are not able to see the "Tree View" link under "PIPS Pages" either. If I try to visit the PIPS Pages Tree View page directly with the URL (wp-admin/edit.php?post_type=pbsrg_pips_user_page&page=cms-tpv-page-pbsrg_pips_user_page), it says I don't have sufficient permissions. This issue only occurs on non-admin accounts and I did not have this issue prior to uploading the development code.

Screenshots:
http://pbsrg.com/tempdl/agapetry/tree-view-1.jpg
http://pbsrg.com/tempdl/agapetry/tree-view-2.jpg

Any ideas?


12:47 pm
June 29, 2011


Kevin

Admin

posts 2503

4

I get the same results with Role Scoper 1.3.42-dev, 1.3.41 and 1.3.27 if the CPT is enabled for RS filtering in Roles > Options > Realm.

CMS Tree View is requiring 'edit_pages' instead of the corresponding type-specific capability. You can correct it by editing plugins/cms-tree-page-view/functions.php as follows:

change:

add_submenu_page($slug, $post_type_object->labels->name . " Tree View", $post_type_object->labels->name . " Tree View", "edit_pages", "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");

to:

add_submenu_page($slug, $post_type_object->labels->name . " Tree View", $post_type_object->labels->name . " Tree View", $post_type_object->cap->edit_posts, "cms-tpv-page-$one_menu_post_type", "cms_tpv_pages_page");

1:55 pm
June 29, 2011


dmb

Member

United States

posts 7

5

THANK YOU!!

I forgot that I had also changed Editor capabilities with User Role Editor recently, trying to resolve my first issue.  I took a look, and I had unchecked "edit_pages."

Thanks again for your help.


About the Agapetry forum

Currently Online:

14 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1246

Posts: 5654

Members:

There are 1257 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