- December 13, 2016 at 8:59 pm #43368
Just installed WPFront PRO. I have a role which I don’t want to allow to create Docs.
I have not ticked any of the Docs capabilities for this role, but this role can still create new Docs.
Am I overlooking something as a newby?December 14, 2016 at 10:32 pm #43429
How are they creating new Docs? If its using ‘Media’ try unchecking ‘upload_files’.
SyamDecember 15, 2016 at 7:59 pm #43517
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?
PeterDecember 16, 2016 at 11:06 pm #43585
I don’t think we are referring the same thing here. Is it possible for you to share some screenshots?
Please upload the screenshots to a free image hosting service and share the links here.
SyamDecember 19, 2016 at 2:17 am #43640
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.
PeterDecember 19, 2016 at 10:14 pm #43684
Can you also share a wp-admin screenshot of the user who is having this issue?
SyamDecember 21, 2016 at 8:00 pm #43808
I have added the requested two screenshots to the following folder:
PeterDecember 24, 2016 at 10:07 pm #43941
I wanted to see the admin menus appearing for this user. Can you share a full screen shot, including the menus.
Sorry for the delayed response.
SyamDecember 25, 2016 at 6:51 pm #43988
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.
PeterDecember 27, 2016 at 10:18 pm #44035
Are you trying to remove the “Docs” menu shown within the screenshot?
SyamDecember 27, 2016 at 11:30 pm #44037
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.
PeterDecember 28, 2016 at 6:14 pm #44078
I asked for the wp-admin screenshot including the whole admin menu. The provided screenshot is for the frontend. Based on your role capabilities, user is supposed to see only the Dashboard and their profile. I wanted to verify it. If its possible, I would still like to see the complete backend screenshot for this user.
Is it possible for you to ask in the Docs plugin support, what capabilities they check to add the menus you showed in the screenshot?
SyamDecember 28, 2016 at 9:21 pm #44079
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?
PeterJanuary 1, 2017 at 10:49 am #44223
“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?”
Yes, WPFront URE plugin allows to do it through the UI.
Can you give me access to your site?
SyamJanuary 1, 2017 at 7:27 pm #44225This reply has been marked as private.
The topic ‘Prevent creation of Docs’ is closed to new replies.