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

The English string $string['notabletoassignroleshere'] is not clear enough

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 3.0
    • Component/s: Language
    • Labels:
    • Testing Instructions:
      Hide
      1. By default there are no roles that can be assigned in block context
      2. Login as teacher, go to the course, turn editing mode on
      3. Make sure the 'Permissions' item appears in each block's settings and you can navigate there and change permissions. The item "Assign roles in ... block" should never appear
      4. As admin edit student or non-editing teacher role and check the box "Block" for the "Context types where this role may be assigned" setting.
      5. Login as teacher, go to the course, turn editing mode on
      6. Make sure the "Assign roles in ... block" appears under the block settings, you can navigate there and then jump to permissions through block settings menu. Remember the URL of the "Assign roles" page
      7. As admin remove the "Block" checkbox you added above
      8. Login as teacher, go to the course, turn editing mode on
      9. Paste URL from above and make sure that error message suggests you to contact administrator
      Show
      By default there are no roles that can be assigned in block context Login as teacher, go to the course, turn editing mode on Make sure the 'Permissions' item appears in each block's settings and you can navigate there and change permissions. The item "Assign roles in ... block" should never appear As admin edit student or non-editing teacher role and check the box "Block" for the "Context types where this role may be assigned" setting. Login as teacher, go to the course, turn editing mode on Make sure the "Assign roles in ... block" appears under the block settings, you can navigate there and then jump to permissions through block settings menu. Remember the URL of the "Assign roles" page As admin remove the "Block" checkbox you added above Login as teacher, go to the course, turn editing mode on Paste URL from above and make sure that error message suggests you to contact administrator
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE
    • Pull Master Branch:
      wip-MDL-25451-master

      Description

      If you want to assign a role at block level, admin has to allow this before.
      If the administrator doesn't allow this, during roles assignment at block level the string $string['notabletoassignroleshere'] is displayed.

      The content of the string reports: 'You are not able to assign any roles here'.

      IMHO this string is not correct because it is not clear if the deny comes from a bug of moodle or it belongs to a plan.

      Still IMHO the string should sound like: 'The assign of any roles at this level has not been allowed. Please contact administrator to ask for it' (I apologise if this is not correct English)

      In italian: $string['notabletoassignroleshere'] = 'Non è stata abilitata l\'assegnazione dei ruoli in questo contesto. Contatta l\'amministratore di sistema per chiederne l\'abilitazione';

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  16/Nov/15