Forum Replies Created
- This reply has been marked as private.
I got this answer from the Buddypress Docs plugin people.
You can filter who can create docs by adding your own callback on the bp_docs_current_user_can_create_in_context hook.
(You can also add a filter to WP’s capability system if that’s more familiar to you.)
Then, you can make whatever rules you need. If the user can’t create a doc, the button will not appear, and the user will not be able to access the create docs page.
Unfortunately I am not a programmer so the github link does not help me.
Then they mention to add a filter to WP’s capability system!
No idea how to do that. Isn’t that what your WPFRONT provides me?
So now I know that what I want (hide the “create doc” button based on role) can be done but I still don’t know how.
Can WPFRONT help me?
The last screenshot I took because you asked for it. Normally my users only use the frontend DOCS function and they don’t see the backend admin bar.
What I want to achieve is that depending on the capabilities setting for the role users can see the DOCS button on the frontend or not.
To answer your question: yes I want to remove the DOCS menu button on the frontend for certain roles only.
I did expect I could achieve that with the pro version of WPFRONT. Otherwise I wouldnot know what the DOCS group is doing in the role settings for the PRO version.
Sorry for the misunderstanding.
I have added useradmin.jpeg to the shared folder:
For this screenshot I UNchecked “deny wp-admin” and “disable toolbar” in de “Login Redirect” options.
Normally I have these options checked.
I have added the requested two screenshots to the following folder:
The Buddypress Docs Plugin provide for members to create documents outsite of the activity stream.
I want certain roles NOT to be able to create documents.
The following link shows the role settings for the role I want to prevent creating docs : https://www.icloud.com/sharedalbum/#B0rGWZuqDc6Pfl
It is very small print but you get the idea that none of the capabilities is checked.
The DOCS section near the bottom of the screenshot has all capabilities unchecked. So this role should not be able to do anything with Docs.
My problem is that the member with this specific role is still able to create docs.
I would expect that unchecking all the capabilities for docs would prevent
this member to create docs.
I have unchecked “upload_files” in Media.
It does not change anything. That role has now all capabilities unchecked but can still create New Documents as provided thru the Buddypress Docs Plugin.
What I try to achieve is to have a Role which users canNOT make New Documents.
In addition I want to have a Role which users can only make and edit own documents.
Whatever I check or uncheck in the Roles Docs part it does not have any effect for the front end user.
Can you confirm please that the Roles Docs settings are for the Buddypress Docs Plugin.
Any suggestion on how to go forward?