Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34910

Remove the "Blog about this (Course|module instance name)" link when the course or instance doesn't allows new blog entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.4
    • 2.2, 2.3
    • Blog
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • MOODLE_24_STABLE
    • MDL-34910_master
    • Hide
      1. Logged as an admin enable blog associations (useblogassociations) going to the admin tree -> apparence -> blog
      2. Logged as a teacher go to a course
      3. Add the "blog menu" block
      4. Click "Add an entry about this course" and fill the form ensuring "Blog about course COURSENAME" is checked
      5. Copy in the clipboard the URL where you are redirected, you SHOULD see a link on the upper part to add a new blog entry about this course
      6. Logged as an admin go to the course administration -> users -> Permissions, select "Teacher" role and prevent the capability "moodle/blog:associatecourse", do the same with the "Authenticated user" role
      7. Paste the clipboard URL in the browser, the link SHOULD NOT appear
      8. Create a module instance of any kind and view it
      9. Add the "blog menu" block to the module instance page
      10. Click "Add an entry about this ACTIVITY" and fill the form ensuring "Blog about ACTIVITY ACTIVITYNAME" is checked
      11. Copy in the clipboard the URL where you are redirected, here you SHOULD see a link on the upper part to add a new blog entry about this activity
      12. Logged as an admin go to the course administration -> users -> Permissions, select "Teacher" role and prevent the capability "moodle/blog:associatemodule", do the same with the "Authenticated user" role
      13. Paste the clipboard URL in the browser, the link SHOULD NOT appear
      Show
      Logged as an admin enable blog associations (useblogassociations) going to the admin tree -> apparence -> blog Logged as a teacher go to a course Add the "blog menu" block Click "Add an entry about this course" and fill the form ensuring "Blog about course COURSENAME" is checked Copy in the clipboard the URL where you are redirected, you SHOULD see a link on the upper part to add a new blog entry about this course Logged as an admin go to the course administration -> users -> Permissions, select "Teacher" role and prevent the capability "moodle/blog:associatecourse", do the same with the "Authenticated user" role Paste the clipboard URL in the browser, the link SHOULD NOT appear Create a module instance of any kind and view it Add the "blog menu" block to the module instance page Click "Add an entry about this ACTIVITY" and fill the form ensuring "Blog about ACTIVITY ACTIVITYNAME" is checked Copy in the clipboard the URL where you are redirected, here you SHOULD see a link on the upper part to add a new blog entry about this activity Logged as an admin go to the course administration -> users -> Permissions, select "Teacher" role and prevent the capability "moodle/blog:associatemodule", do the same with the "Authenticated user" role Paste the clipboard URL in the browser, the link SHOULD NOT appear

      Viewing the list of associations between a blog entry and module instances or courses there is a link to add a new related blog entry. This link should not appear if the context doesn't allow blog associations.

      To replicate the problem:

      1. Enable blog associations to courses or modules
      2. Go to a course or module instance and add the blog menu block
      3. Add a new entry associated to the course or the module instance
      4. View the entry and copy the URL to the clipboard
      5. Remove the capability to associate courses or modules to blog entries at the course or module instance context (depending on the association you made)
      6. If you paste the copied URL you can see the link to add a new related blog entry, that link should not appear

            dmonllao David Monllaó
            dmonllao David Monllaó
            Dan Poltawski Dan Poltawski
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.