Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: error/forum/noviewdiscussionspermission.

error/forum/noviewdiscussionspermission: Difference between revisions

From MoodleDocs
m (→‎top: clean up, typos fixed: e.g → e.g.)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Moodle 1.9}}
You may experience the error ''forum/noviewdiscussionspermission'' after upgrading from previous Moodle versions or in any other circumstance in which the actual user does not have the needed permissions.
 
You may experience the following error:
 
== error/forum/noviewdiscussionspermission ==
 
after upgrading from previous Moodle versions or in any other circumstance in which the actual user does not have the needed permissions.


This error means that the actual user has no permissions to view the discussion/forum posts.
This error means that the actual user has no permissions to view the discussion/forum posts.
Line 25: Line 19:
If you do not want anonymous users to be capable of reading your news posts on the Front Page, proceed as described and choose the Guest user and click the radio button in the third column to PREVENT (or fourth column PROHIBIT) this permission.
If you do not want anonymous users to be capable of reading your news posts on the Front Page, proceed as described and choose the Guest user and click the radio button in the third column to PREVENT (or fourth column PROHIBIT) this permission.


Remember that on Moodle 1.9 onwards you can also change the default Role on the Front Page:
Remember that you can also change the default Role on the Front Page:


<ul>
<ul>
<li> Access Site Administration > Front Page > Front Page settings</li>
<li> Access Site Administration > Front Page > Front Page settings</li>


<li>Set the default front page role, e.g to student or authenticated user</li>
<li>Set the default front page role, e.g. to student or authenticated user</li>
</ul>
</ul>


Line 46: Line 40:


<ul>
<ul>
<li> Forum Type: [https://docs.moodle.org/en/mod/forum/mod#Forum_type]</li>
<li> [https://docs.moodle.org/en/mod/forum/mod#Forum_type Forum Type]</li>
<li> Roles FAQ: [https://docs.moodle.org/en/Roles_FAQ]</li>
<li> [https://docs.moodle.org/en/Roles_FAQ Roles FAQ]</li>
<li> Roles: [https://docs.moodle.org/en/Roles]</li>
<li> [https://docs.moodle.org/en/Roles Roles]</li>
</ul>
</ul>
[[Category:Error|Forum]]
[[Category:Forum|Error]]
[[es:error/forum/noviewdiscussionspermission]]

Latest revision as of 16:12, 19 May 2022

You may experience the error forum/noviewdiscussionspermission after upgrading from previous Moodle versions or in any other circumstance in which the actual user does not have the needed permissions.

This error means that the actual user has no permissions to view the discussion/forum posts.

If you want the "Authenticated User" Role to be capable of viewing the posts, e.g. on the Front Page, proceed as follows:

  • As an administrator, navigate to Site Administration > Front Page > Front Page roles
  • Click on the "Override roles" link
  • Click on "Authenticated User"
  • Find the Forum heading, then "View Discussions" (mod/forum:viewdiscussion capability) and tick the second radio input (Allow)
  • At the bottom, press "Save changes"

If you do not want anonymous users to be capable of reading your news posts on the Front Page, proceed as described and choose the Guest user and click the radio button in the third column to PREVENT (or fourth column PROHIBIT) this permission.

Remember that you can also change the default Role on the Front Page:

  • Access Site Administration > Front Page > Front Page settings
  • Set the default front page role, e.g. to student or authenticated user

Be careful when combining roles and capabilities. My preference/setting is:

  • Default Front Page Role: none
  • Guest Role on Front Page: PREVENT mod/forum:viewdiscussion capability
  • Authenticated User on Front Page: ALLOW mod/forum:viewdiscussion capability

See also