How to Restrict Cloud Templates Access for Editor Role?

Posted in: Newspaper
Post count: 4

Hello tagDiv Support Team,

I need to restrict access to Cloud Templates for users with the Editor role on my Newspaper theme website. Currently, editors can still see and edit Cloud Templates in the backend, which I need to prevent.

What I’ve tried:
– Installed “User Role Editor” plugin and adjusted capabilities
– Added custom code to functions.php to remove menu items and capabilities
– None of these solutions have successfully hidden or blocked access to Cloud Templates

What I need:
– Only Administrators should be able to access, view, and edit Cloud Templates
– Editors should be completely blocked from accessing Cloud Templates (both in the admin menu and via direct URL access)
– Editors should still be able to create and edit regular posts and pages

Questions:
1. Is there a built-in setting in Newspaper theme to restrict Cloud Templates access by user role?
2. What is the correct capability or hook to use to prevent editors from accessing the Cloud Templates custom post type (tdb_templates)?
3. Can you provide the recommended code solution to implement this restriction?

Theme Details:
– Theme: Newspaper
– Plugins: tagDiv Composer, tagDiv Cloud Library (both active)
– WordPress Version: 6.8.3
– Theme Version: 12.7.3

Thank you for your assistance!

Best regards

Post count: 35449

Hi,
Unfortunately, the theme do not have any option to restrict the editors from using the cloud templates.
What can be done is what you already tried, to use a plugin that restricts the user to different sections of your website.
Do you want to restrict only the cloud templates or also teh option to edit with tagDiv Composer? I’m asking because from tagDiv Composer, you can import cloud templates, sections, and elements.
Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.