Moodle
  1. Moodle
  2. MDL-6821

allow teachers to specify who is allowed to edit a field

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.2
    • Fix Version/s: None
    • Labels:
      None
    • Database:
      Any
    • Affected Branches:
      MOODLE_16_STABLE
    • Rank:
      1690

      Description

      A new option is added to all field that can be added to a database:

      "Data can be modified" followed by a list box containing these options :

      by everyone (default)
      by teachers only
      by teachers and the owner only
      by teachers and the owner's group only

      If a user open a data record for modification and doesn't have the proper permission to edit a field, the field is not displayed and replaced with a message: (modification not allowed)

      The attached file contains the files necessary to resolve this as well as entry MDL-5583 (http://tracker.moodle.org/browse/MDL-5583)

        Issue Links

          Activity

          Hide
          Martin Dougiamas added a comment -

          Thanks, Laurent, I really appreciate you efforts.

          Unfortunately I can't use these patches because they are against 1.6 .... in the stable branches we don't add new features. In 1.7 we've changed the roles a lot (students and teachers can no longer be taken for granted) so the logic needs to be re-thought using the new API for capabilities

          See: http://docs.moodle.org/en/Roles

          And: http://download.moodle.org

          Cheers

          Show
          Martin Dougiamas added a comment - Thanks, Laurent, I really appreciate you efforts. Unfortunately I can't use these patches because they are against 1.6 .... in the stable branches we don't add new features. In 1.7 we've changed the roles a lot (students and teachers can no longer be taken for granted) so the logic needs to be re-thought using the new API for capabilities See: http://docs.moodle.org/en/Roles And: http://download.moodle.org Cheers
          Hide
          Laurent Domenech added a comment -

          Not a problem. Thanks for the download link, I didn't see it previously. I'm going to redo this over the 1.7. It will take me a little more time.

          Show
          Laurent Domenech added a comment - Not a problem. Thanks for the download link, I didn't see it previously. I'm going to redo this over the 1.7. It will take me a little more time.
          Hide
          Laurent Domenech added a comment -

          This file contains the fixes (for just this issue) made and tested on the latest 1.7.

          Show
          Laurent Domenech added a comment - This file contains the fixes (for just this issue) made and tested on the latest 1.7.
          Hide
          Robert Allerstorfer added a comment -

          Is there a patch available also against 1.9+? Would like to try.

          Show
          Robert Allerstorfer added a comment - Is there a patch available also against 1.9+? Would like to try.

            People

            • Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: