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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3
    • Fix Version/s: 2.4
    • Component/s: Blog
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_22_STABLE, MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-34910_master

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Integrator:
              Dan Poltawski
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                3/Dec/12