Skip Navigation

Custom User Role needs Edit Layouts capability to Un-assign Layouts from posts

Resolved

Reported for: Toolset Layouts 2.2

Resolved in: Toolset Layouts 2.3

Symptoms

When you give a Custom User Role the rights to assign a layout to content (ddl_assign_layout_to_content), that user role can only assign a layout but not unassign it afterward.

To be able to unassign a layout, custom user role also needs to have the rights to edit layouts (ddl_edit_layout). However, this allows the user to edit the layout as well, which is not desired.

Workaround

This issue will be fixed in the next version of Toolset Layouts.

As a current workaround, you can download this file, and replace the existing wpddl.post-edit-page-manager.class.php file, found in the ../wp-content/plugins/layouts/classes-auto/ folder.

Comments are closed