Change WordPress user roles and capabilities › Forums › Bug Reports › Activate content view restrictions No topics
- This topic has 11 replies, 2 voices, and was last updated 5 years, 11 months ago by Vladimir.
-
AuthorPosts
-
18/01/2019 at 20:46 #5405SL_TriBunParticipant
Hello everybody,
I have the following problem:
If I set the hook on Activate content view restrictions then none of my roles except the administrator can read a topic. All answers to the new topic, however, already. Call leg of the topic is only always the answers shown but not the actual topic. Even if I give a role all forgivable rights nothing is time only if I directly give a user the administrator role he gets the topic or the content displayed. What am I doing wrong ?19/01/2019 at 03:05 #5407VladimirKeymasterHi,
URE Pro does not apply any restrictions to users with ‘administrator’ role. That’s why it helps.
Can you show screenshots what settings you made to restrict content view and what visible/hidden. If information is not for the public, you can send links directly to support [at-sign] role-editor.com
19/01/2019 at 18:48 #5411SL_TriBunParticipanthttps://www.directupload.net/file/d/5337/5n87qy5c_jpg.htm
https://www.directupload.net/file/d/5337/ukjrxtm2_jpg.htm
https://www.directupload.net/file/d/5337/r3nrp7j4_jpg.htm
https://www.directupload.net/file/d/5337/emc5l55r_jpg.htm
https://www.directupload.net/file/d/5337/taun28ib_jpg.htm
https://www.directupload.net/file/d/5337/u9uoseoj_jpg.htm
https://www.directupload.net/file/d/5337/3lwls8p5_jpg.htm
https://www.directupload.net/file/d/5337/ntnguvbc_jpg.htm
https://www.directupload.net/file/d/5337/48tlf347_jpg.htm
https://www.directupload.net/file/d/5337/vg3d33ac_jpg.htm19/01/2019 at 19:06 #5412SL_TriBunParticipantthe answer Post can the user read ! only the start topic not ! with admin role the user can read all.
20/01/2019 at 10:56 #5414VladimirKeymasterIt’s the 1st time when someone tries to use “Content view restrictions” settings for the bbPress forums. Thanks for showing the issue which it raises. It seems I have to exclude bbPress’s custom post types (forum, topic, reply) from the “Content view restrictions” add-on scope.
“Content view restrictions” add-on is developed for the existing content: posts, pages, custom post types. That is for item, which is published from the back-end and authorized persons defines for it the view permissions.
Replies/answers is sent to forum topic from front-end by ordinal users, which are not authorized to set view permissions for their posts.
So “reply” custom post type item is published with default permissions – visible to all.If you restricted view for topic, it’s visibility for not authorized user depends from the selected access error action:
– topic is fully hidden from the topics list if “404” was selected,
and
– topic title is shown for all if “error message” was selected, even if user does not have permission to view this topic.Restriction applies just to this topic custom post type item content (description), and does not apply to any reply/answer sent to this topic, as ‘reply’ is another custom post type created by bbPress and every item may/should have own view permissions – which may be set directly at the reply backend editor.
Sorry for the long and possibly not too clear explanation, but finally I do not recommend to use “Content view restrictions” add-on for bbPress topics and replies. It’s not suitable for this purpose.
View restrictions for bbPress forums and topics requires a special solution.
Let me know if you are interested for custom solution which would restrict view of forum and/or topic by the user role. I may write it for testing with your help as the base for the future add-on for User Role Editor Pro.
20/01/2019 at 18:37 #5415SL_TriBunParticipantI can not use the plugin for pages and posts as long as the error persists. Can you disable the plugin for the forum?
21/01/2019 at 01:32 #5416VladimirKeymasterI thought you specially try to restrict view of the forum topic and its replies with URE Pro “Content view restrictions” add-on. Is it wrong?
While you don’t set view restrictions at the topic editor “Content View Restrictions” meta box, this forum topic visibility is not restricted by URE Pro. It’s managed by bbPress user capabilities only.
Do you have a problem with all topics or with just the selected subset?
If the 2nd, check what option is set at “Content View Restrictions” meta box for that topic. In order URE Pro “Content View Restrictions” does not manage view of the topic you need to select “Allow->All visitors” or “Selected roles ->empty list of roles”.Is not restricted topic visible when you turn OFF “Activate content view restrictions” checkbox at “Settings->User Role Editor->Additional Modules” tab?
21/01/2019 at 18:55 #5418SL_TriBunParticipantI have the Problem with all topics.
“Is not restricted topic visible when you turn OFF “Activate content view restrictions” checkbox at “Settings->User Role Editor->Additional Modules” tab?”!! YES!!
22/01/2019 at 01:15 #5419VladimirKeymasterThank you for clarification. I apologize for the misunderstanding.
I reproduced the issue. It’s a bug. Thanks for discovering. I will investigate it and develop the fix.
22/01/2019 at 05:03 #5420VladimirKeymasterTry beta version 4.49.4.b1 which contains a fix for the described issue.
It’s available from Downloads page after login.23/01/2019 at 03:26 #5421SL_TriBunParticipantMany thanks. Now the Plugin functions great!
It would be nice if one separate forums and forum parts for some rolls visibly or invisibly could switch. So i can use only your Plugin for all settings.23/01/2019 at 06:23 #5422VladimirKeymasterThanks for the help with testing and suggestion. I will realized it, with time…
-
AuthorPosts
- You must be logged in to reply to this topic.