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

remove roles button in myMoodle blocks

    XMLWordPrintable

    Details

    • Sprint:
      FRONTEND Sprint 15

      Description

      The block code currently shows the roles button for all non-pinned blocks, including those on the myMoodle page. But on myMoodle, you can't give any-one else permission to see the page or block instance, so I think roles are redundant. The icon is likely to confuse students who wouldn't normally see it.

      I think the fix is in blocks/moodleblock.class.php

      $onmymoodle = strpos( $_SERVER['PHP_SELF'], '/my/index.php' ) !== false ? true : false;
      if( !$onmymoodle & empty($this->instance->pinned)) {

      instead of just if( empty($this->instance->pinned)) {

      Unless you can find a more elegant solution?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dobedobedoh Andrew Nicols
              Reporter:
              jenny-gray Jenny Gray
              Peer reviewer:
              Zachary Durber
              Integrator:
              Sam Hemelryk
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Jan/15