<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Roles and permissions</title>
    <link>https://moodle.org/mod/forum/view.php?f=941</link>
    <description>
Documentation: [[Roles]] and [[Roles FAQ]]


Before starting a new discussion topic, please check the [[Roles FAQ]] and try a forum search.
</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1774890407/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Custom Role Permissions - Site Menu Navigation</title>
      <link>https://moodle.org/mod/forum/discuss.php?d=473692&amp;parent=1897763</link>
      <pubDate>Tue, 24 Mar 2026 03:27:07 GMT</pubDate>
      <description>by Ash Shenker. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I'm looking to create a new user role in which I can edit the &lt;a href=&quot;https://moodle.org/mod/glossary/showentry.php?eid=9986&amp;amp;displayformat=dictionary&quot; title=&quot;Glossary of common terms: permission&quot; class=&quot;glossary autolink concept glossaryid5&quot; data-entryid=&quot;9986&quot;&gt;permission&lt;/a&gt; to show only certain menu items, including custom items. Has anyone been able to achieve this or know how I could set this up?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Ash&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/mod/forum/discuss.php?d=473692&amp;parent=1897763</guid>
    </item>
    <item>
      <title>Same HTML renders differently for students vs instructors and layout stripped for students</title>
      <link>https://moodle.org/mod/forum/discuss.php?d=473638&amp;parent=1897553</link>
      <pubDate>Wed, 18 Mar 2026 00:48:20 GMT</pubDate>
      <description>by Walid Alieldin. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I have a&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;Page&lt;/span&gt; in a course where I paste custom HTML. The content uses:&lt;/p&gt;
&lt;ul class=&quot;list-inside list-disc whitespace-normal [li_&amp;amp;]:pl-6&quot;&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;/&lt;span&gt; &lt;/span&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;for collapsible (show/hide) &lt;a href=&quot;https://moodle.org/mod/glossary/showentry.php?eid=41&amp;amp;displayformat=dictionary&quot; title=&quot;Glossary of common terms: sections&quot; class=&quot;glossary autolink concept glossaryid5&quot; data-entryid=&quot;41&quot;&gt;sections&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;Flexbox&lt;/span&gt;&lt;span&gt; &lt;/span&gt;and&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;Grid&lt;/span&gt;&lt;span&gt; &lt;/span&gt;for layout&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;&lt;code&gt;border-radius&lt;/code&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;and other inline styles&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span class=&quot;font-semibold&quot;&gt;What happens&lt;/span&gt;&lt;/p&gt;
&lt;ul class=&quot;list-inside list-disc whitespace-normal [li_&amp;amp;]:pl-6&quot;&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;Instructor/teacher view:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;The page renders as intended: collapsible sections work, two‑column layout is correct, styling is preserved.&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;Student view:&lt;/span&gt;&lt;span&gt; &lt;/span&gt;Moodle appears to strip or alter the HTML so that:
&lt;ul class=&quot;list-inside list-disc whitespace-normal [li_&amp;amp;]:pl-6&quot;&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;and&lt;span&gt; &lt;/span&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;are removed&lt;/span&gt;&lt;span&gt; &lt;/span&gt;– “About this Program”, “Start Here”, etc. no longer collapse; the summary text appears as plain text and the structure is broken.&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;Flex/Grid is stripped&lt;/span&gt;&lt;span&gt; &lt;/span&gt;– e.g.&lt;span&gt; &lt;/span&gt;&lt;code&gt;display: flex&lt;/code&gt;,&lt;span&gt; &lt;/span&gt;&lt;code&gt;flex: 1 1 260px&lt;/code&gt;,&lt;span&gt; &lt;/span&gt;&lt;code&gt;display: grid&lt;/code&gt;,&lt;span&gt; &lt;/span&gt;&lt;code&gt;grid-template-columns&lt;/code&gt;,&lt;span&gt; &lt;/span&gt;&lt;code&gt;gap&lt;/code&gt;, so side‑by‑side layouts break.&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;span class=&quot;font-semibold&quot;&gt;&lt;code&gt;border-radius&lt;/code&gt;&lt;/span&gt;&lt;span&gt; &lt;/span&gt;(and possibly other properties) are removed from inline styles.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So students lose both the&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;show/hide behaviour&lt;/span&gt;&lt;span&gt; &lt;/span&gt;and the&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;intended layout&lt;/span&gt;, even though the same HTML is stored for everyone.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;font-semibold&quot;&gt;What I’ve attached&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I’ve attached two files that show exactly how the&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;same&lt;/span&gt;&lt;span&gt; &lt;/span&gt;source content is rendered in the browser for each role:&lt;/p&gt;
&lt;ol class=&quot;list-inside list-decimal whitespace-normal [li_&amp;amp;]:pl-6&quot;&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;code class=&quot;md-inline-path-filename-like&quot;&gt;&lt;span class=&quot;md-inline-path-filename&quot;&gt;atp_instructor_html.txt&lt;/span&gt;&lt;/code&gt;– HTML as rendered for an instructor (full structure:&lt;span&gt; &lt;/span&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;,&lt;span&gt; &lt;/span&gt;&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;, flex layout, etc.).&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;&lt;code class=&quot;md-inline-path-filename-like&quot;&gt;&lt;span class=&quot;md-inline-path-filename&quot;&gt;atp_student_html.txt&lt;/span&gt;&lt;/code&gt;– HTML as rendered for a student (&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;/&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt; was removed, no flex/grid on the relevant divs, the heading etc. appears as plain text).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Comparing these two files makes the difference very clear.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span class=&quot;font-semibold&quot;&gt;Conclusion&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;must keep the show/hide (collapse/expand) behaviour for students&lt;/span&gt;. I’m looking for the recommended way to either:&lt;/p&gt;
&lt;ul class=&quot;list-inside list-disc whitespace-normal [li_&amp;amp;]:pl-6&quot;&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;Have this content rendered the same for students as for instructors (so&lt;span&gt; &lt;/span&gt;&lt;code&gt;&amp;lt;details&amp;gt;&lt;/code&gt;/&lt;code&gt;&amp;lt;summary&amp;gt;&lt;/code&gt;&lt;span&gt; &lt;/span&gt;and the layout are preserved), or&lt;/li&gt;
&lt;li class=&quot;py-1 [&amp;amp;&amp;gt;p]:inline&quot;&gt;Configure Moodle (e.g. filters, HTML Purifier, trusted content / trusttext) so that this content is not stripped when viewed by students.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I’ve seen references to&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;“Trust content” / trusttext&lt;/span&gt;&lt;span&gt; &lt;/span&gt;and&lt;span&gt; &lt;/span&gt;&lt;span class=&quot;font-semibold&quot;&gt;HTML Purifier&lt;/span&gt;&lt;span&gt; &lt;/span&gt;possibly stripping certain tags and &lt;a href=&quot;https://moodle.org/mod/glossary/showentry.php?eid=13&amp;amp;displayformat=dictionary&quot; title=&quot;Glossary of common terms: CSS&quot; class=&quot;glossary autolink concept glossaryid5&quot; data-entryid=&quot;13&quot;&gt;CSS&lt;/a&gt;. I haven’t found a clear path in our admin menus to allow this HTML for students. I have full admin access to the front-end.&lt;/p&gt;
&lt;p&gt;Moodle version: &lt;a href=&quot;http://moodle.org/&quot;&gt;Moodle&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;a title=&quot;2024100700.05&quot; href=&quot;https://moodledev.io/general/releases&quot;&gt;4.5+ (Build: 20241108)&lt;/a&gt;&lt;br /&gt;Thanks in advance for any pointers or links to docs/tracker issues.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Here is how the instructor version behaves: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;img-fluid&quot; src=&quot;https://moodle.org/pluginfile.php/3981/mod_forum/post/1897553/atp.gif&quot; alt=&quot;&quot; width=&quot;1200&quot; height=&quot;430&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is how the students' version rendered: &lt;/p&gt;
&lt;p&gt;&lt;img class=&quot;img-fluid&quot; src=&quot;https://moodle.org/pluginfile.php/3981/mod_forum/post/1897553/apt_student.png&quot; alt=&quot;&quot; width=&quot;1200&quot; height=&quot;514&quot; /&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/mod/forum/discuss.php?d=473638&amp;parent=1897553</guid>
    </item>
    <item>
      <title>How to allow students to see each others interests?</title>
      <link>https://moodle.org/mod/forum/discuss.php?d=472141&amp;parent=1894465</link>
      <pubDate>Tue, 27 Jan 2026 19:59:36 GMT</pubDate>
      <description>by Visvanath Ratnaweera. &amp;nbsp;&lt;p&gt;&lt;p&gt;This must be a FAQ. Appreciate all pointers.&lt;/p&gt;
&lt;p&gt;We noticed that when a student look at other student's profile inside a course (mysite/user/view.php?id=USERID&amp;amp;course=COURSEID) he can't see that person's interests. Only the site profile (mysite/user/profile.php?id=USERID) shows the interests.&lt;/p&gt;
&lt;p&gt;That is not what we want. We want the course profile too to show the interests. Looked for a switch, but didn't find. Found the following doc pages, they don't look inviting. I don't want to create a new role just for this. What have we overseen?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.moodle.org/en/View_profile#Course_profile&quot; title=&quot;Moodle Docs - View_profile#Course_profile&quot;&gt;View_profile#Course_profile&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.moodle.org/en/User_profiles&quot; title=&quot;Moodle Docs - User_profiles&quot;&gt;User_profiles&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Moodle 4.5&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/mod/forum/discuss.php?d=472141&amp;parent=1894465</guid>
    </item>
    <item>
      <title>Teachers can't see hidden courses despite correct permissions</title>
      <link>https://moodle.org/mod/forum/discuss.php?d=468302&amp;parent=1893601</link>
      <pubDate>Wed, 14 Jan 2026 08:36:20 GMT</pubDate>
      <description>by heli g. &amp;nbsp;&lt;p&gt;&lt;p&gt;We experienced a similar issue restoring a 4.1 course backup to a 4.5 site. The original 4.1 course had role overrides for Non-editing teachers one of which prohibited viewing hidden courses. On restore in the 4.5 course, Teachers could no longer view the course as the role overrides had moved from the Non-editing teacher role to the Teacher role. &lt;/p&gt;
&lt;p&gt;Fortunately for us we do not have many courses with role overrides - but this is a concern and not something we have experienced before. For us the permissions issue was in the course &lt;a href=&quot;https://moodle.org/mod/glossary/showentry.php?eid=9984&amp;amp;displayformat=dictionary&quot; title=&quot;Glossary of common terms: context&quot; class=&quot;glossary autolink concept glossaryid5&quot; data-entryid=&quot;9984&quot;&gt;context&lt;/a&gt; (Course &amp;gt; Participants &amp;gt; Permissions).&lt;/p&gt;
&lt;p&gt;I did not do the restore so I don't know if any issues were encountered during the process. Another course with Non-editing teacher overrides does not have the same issue. Most odd.... I hope this helps if anyone else encounters this. &lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/mod/forum/discuss.php?d=468302&amp;parent=1893601</guid>
    </item>
    <item>
      <title>Broken permissions or I'm too stupid (or both)</title>
      <link>https://moodle.org/mod/forum/discuss.php?d=471098&amp;parent=1891205</link>
      <pubDate>Fri, 28 Nov 2025 15:20:37 GMT</pubDate>
      <description>by Sébastien Petit. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hello there,&lt;/p&gt;
&lt;p&gt;I find it very difficult to attribute some permissions to my main user on my Moodle site.&lt;/p&gt;
&lt;p&gt;I get this error when trying to go the the messaging preferences:&lt;/p&gt;
&lt;p&gt;&lt;span style=&quot;color:#51140d;font-family:'system-ui', '-apple-system', 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';font-size:15px;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;white-space:normal;background-color:#f4d6d2;text-decoration-thickness:initial;text-decoration-style:initial;text-decoration-color:initial;float:none;&quot;&gt;Sorry, but you do not currently have permissions to do that (Edit own user messaging profile).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Yet, when checking my permission, everything seems fine to me (see attached screenshot): Authenticated User in the System context should have &quot;moodle/user:editownmessageprofile&quot; permission enabled (and also &quot;editownprofile&quot; I guess - but it's not the case...&lt;/p&gt;
&lt;p&gt;What am I missing?? I can't for the life of me see what is wrong.&lt;/p&gt;
&lt;p&gt;Any help appreciated.&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/mod/forum/discuss.php?d=471098&amp;parent=1891205</guid>
    </item>
  </channel>
</rss>