Add a new capability for Download Manager

Viewing 9 posts - 1 through 9 (of 9 total)
#27486

hope82
Member

Hi Tauhidul Alam,

I’m using the “Members” plugin for users’ roles and I want to add a new capability for the “Download Manager” plugin, I modified the “manage_options” capability name as you told me previously in the download-manager.php file to “download_manager_capability” then I added the new name as a capability using the “Members” plugin but the “Download” menu in the admin dashboard appears anyway even if the “download_manager_capability” is unchecked.

If you need any details, please tell me..

Thanks a lot
Hope

#27581

Tauhid
Member

may you please tell me again what you actually trying to achieve.

#27591

hope82
Member

I want to define a capability for “Download Manager” to be able to add it or remove it from a certain role.
For example, I don’t want the “Author” role to be able to use the “Download Manager” from dashboard. I don’t want the “Download Manager” menu to appear at all in the administration dashboard for Authors. To achieve this, I need to add a special capability for the Download Manager plugin (by modifying the name in the download-manager.php file as you suggested previously and using the new name when defining roles).
I did this but still the “Download Manager” menu appears for authors in the admin dashboard in spite of not adding it to the Author role.

What could the problem be? Did I miss something? what is the right thing to do to achieve this?

Thanks a lot for your support
Hope

#27613

Tauhid
Member

in that case, you need to copy all caps from editor or upper caps roles to your custom role.

#27632

hope82
Member

Would you please clarify more. What do you mean in copying all caps to my custom role?
Thanks for your reply
Hope

#27775

Shahjada
Keymaster

You can do that using this plugin https://wordpress.org/plugins/advanced-access-manager/

#27833

hope82
Member

I already have the “Members” plugin which resembles the “advance access manager” plugin in its functionality but this is not the issue! I need to know how to define a specific capability to the download manager plugin to be able to add it or remove it from a specific role.

Thanks

#27836

Shahjada
Keymaster

Download Manager using custom post type and custom post types accessible from any user role with “edit_posts” can’t, so you need to add or removed that cap from any role to allow or deny access, but that also will be applicable for other post types too. The plugin is mentioned in previous post has options to activate/deactivate specific post types from any user role.

#27868

hope82
Member

Apparently the “Advanced Access Manager” plugin has more features than the “Members” plugin… Thanks.

Hope

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘Add a new capability for Download Manager’ is closed to new replies.