Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Role Scoper with CMS Tree View - Creating Un-editable Draft

UserPost

4:43 pm
April 7, 2011


dmb

Member

United States

posts 7

1

Hello,

This is an amazing plugin and I'm really impressed.

But recently, I've come accross an issue when using the CMS Page Tree View Plugin.

Here's what's happening…I've given a user an editor role for only a certain page and it's subpages. CMS Tree View has a feature where you can quickly add a page inside of a parent. (See image). This works great for admins and users who have site when editing rights. However for users who have restricted editing, it creates a draft, and once the draft is created, the user cannot edit it. Even though it is now a subpage of a page that they can edit.  If I try to create a page from the "Add New" button on the default page list, and select the appropriate parent page from the drop down, everything works fine.

So maybe it has something to do with how Role Scoper assigns permissions when a new subpage is created? And maybe this same function is not running when a subpage is created with CMS Tree View?

Any advice is greatly appreciated.

Thank You

11:51 am
April 19, 2011


Kevin

Admin

posts 2503

2

Thanks for bringing that to my attention; sorry my attention was so delayed )

This is fixed in the updated Role Scoper development code (1.3.29-dev).

It involves the following change in role-scoper/admin/filters-admin-save_rs.php:

changed:

if ( isset($_POST[$col_parent]) ) 
	$set_parent = $_POST[$col_parent];

to:

if ( isset($object->$col_parent) ) 
	$set_parent = $object->$col_parent;

10:12 am
April 20, 2011


dmb

Member

United States

posts 7

3

Thank you so much! That fixed the problem. I appreciate you taking the time to read and respond.

Also, for anyone else who experiences this problem, the change is actually in the "filters-admin-save_rs.php" file.


About the Agapetry forum

Currently Online:

16 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1249

Posts: 5659

Members:

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