- This topic has 14 replies, 2 voices, and was last updated 7 years, 11 months ago by peter verbeek.
-
AuthorPosts
-
December 13, 2016 at 8:59 pm #43368peter verbeekParticipant
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 #43429Syam MohanKeymasterHi Peter,
How are they creating new Docs? If its using ‘Media’ try unchecking ‘upload_files’.
Thanks
Syam
December 15, 2016 at 7:59 pm #43517peter verbeekParticipantHi Syam,
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?
Thanks
PeterDecember 16, 2016 at 11:06 pm #43585Syam MohanKeymasterHi Peter,
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.
Thanks
Syam
December 19, 2016 at 2:17 am #43640peter verbeekParticipantHi Syam,
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.
Thanks,
PeterDecember 19, 2016 at 10:14 pm #43684Syam MohanKeymasterHi Peter,
Can you also share a wp-admin screenshot of the user who is having this issue?
Thanks
Syam
December 21, 2016 at 8:00 pm #43808peter verbeekParticipantHi Syam,
I have added the requested two screenshots to the following folder:
https://www.icloud.com/sharedalbum/#B0rGWZuqDc6Pfl
Thanks,
PeterDecember 24, 2016 at 10:07 pm #43941Syam MohanKeymasterHi Peter,
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.
Thanks
Syam
December 25, 2016 at 6:51 pm #43988peter verbeekParticipantHi Syam,
Sorry for the misunderstanding.I have added useradmin.jpeg to the shared folder:
https://www.icloud.com/sharedalbum/#B0rGWZuqDc6PflFor this screenshot I UNchecked “deny wp-admin” and “disable toolbar” in de “Login Redirect” options.
Normally I have these options checked.Thanks,
PeterDecember 27, 2016 at 10:18 pm #44035Syam MohanKeymasterHi Peter,
Are you trying to remove the “Docs” menu shown within the screenshot?
Thanks
Syam
December 27, 2016 at 11:30 pm #44037peter verbeekParticipantThe 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.
Thanks,
PeterDecember 28, 2016 at 6:14 pm #44078Syam MohanKeymasterHi Peter,
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?
Thanks
Syam
December 28, 2016 at 9:21 pm #44079peter verbeekParticipantSyam,
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.
https://github.com/boonebgorges/buddypress-docs/blob/master/includes/functions.php#L326(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?
Thanks
PeterJanuary 1, 2017 at 10:49 am #44223Syam MohanKeymasterHi Peter,
“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?
Thanks
Syam
January 1, 2017 at 7:27 pm #44225peter verbeekParticipantThis reply has been marked as private. -
AuthorPosts
- The topic ‘Prevent creation of Docs’ is closed to new replies.