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

Cant lock last name edition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.7.1, 2.7.2
    • Fix Version/s: None
    • Component/s: Authentication
    • Labels:
      None
    • Workaround:
      Hide

      at /auth/manual/auth.php

      change to:

      /**

      • The name of the component. Used by the configuration.
        */
        const COMPONENT_NAME = 'auth_manual';
        const LEGACY_COMPONENT_NAME = 'auth/manual';

      /**

      • Constructor.
        */

      function auth_plugin_manual()

      { $this->authtype = 'manual'; $this->config = get_config(self::COMPONENT_NAME); //workaround $this->config = get_config(self::COMPONENT_NAME); $new_conf = get_config(self::COMPONENT_NAME); $legacy_conf = get_config(self::LEGACY_COMPONENT_NAME); $this->config = (object)array_merge((array)$legacy_conf, (array)$new_conf); //$this->config = get_config(self::COMPONENT_NAME); }
      Show
      at /auth/manual/auth.php change to: /** The name of the component. Used by the configuration. */ const COMPONENT_NAME = 'auth_manual'; const LEGACY_COMPONENT_NAME = 'auth/manual'; /** Constructor. */ function auth_plugin_manual() { $this->authtype = 'manual'; $this->config = get_config(self::COMPONENT_NAME); //workaround $this->config = get_config(self::COMPONENT_NAME); $new_conf = get_config(self::COMPONENT_NAME); $legacy_conf = get_config(self::LEGACY_COMPONENT_NAME); $this->config = (object)array_merge((array)$legacy_conf, (array)$new_conf); //$this->config = get_config(self::COMPONENT_NAME); }
    • Affected Branches:
      MOODLE_27_STABLE

      Description

      Hi

      Im having a problem locking last name edition on Moodle 2.7.1. Even if a lock the option, students still can edit their names. How can i fix that?

      Thanks


      EDIT

      Found a workaround.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              Phela_Poscam Aleph Campos da Silveira
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: