Расположение страниц назначения ролей

Назначение ролей производится для/в опредленного(ом) контекста(е). Сайт (главная страница) и курс - пример двух различных контекстов. В то время, как процесс назначения ролей одинаков для различных контекстов, путь к странице назначения может различаться. Ниже перечислены контексты и соответствующие пути к странице назначения ролей.

  • Контекст системы: Администрирование > Пользователи > Права > Назначить глобальные роли (Administration > Users > Permissions > Assign global roles). В Moodle 1.7 этот контекст назывался "сайт".
  • Контекст сайта (главной страницы): Администрирование > Главная страница > Роли на главной странице (Administration > Front Page > Front Page roles). Для Moodle 1.8 и выше.
  • Контекст категории курса: ссылка "Назначить роли" на странице категории.
  • Контекст курса: ссылка "Назначить роли" в блоке "Управление"
  • Контекст модуля: закладка "Роли" на странице редактирования настроек элемента курса.
  • Контекст блока: иконка-ссылка "Назначить роли" у блока в режиме редактирования.
  • Контекст пользователя: закладка "Роли" на странице профиля пользователя.

Контексты

By assigning a role to a user in a certain context, you grant them the permissions contained in that role for the current context and all lower contexts.

The list of contexts in hierarchical order is as follows:

  • System (no parent)
  • Site (parent = system) - Moodle 1.8 onwards
  • Course category (parent = system)
  • Course (parent = course category or system)
  • Module (parent = course)
  • Block (parent = system or course)
  • User (parent = system)

Inheritance will kick in if a role is assigned at a higher level. For example if a user is assigned a Teacher role in a particular course category then the user will have this role in ALL courses within the category.

Roles will only work if the role assignment is made in the correct context. For example, a Teacher role should be assigned in the course or course category context, a Forum moderator for a particular forum should be assigned in the module context.

The Роль Инспектор is an example of a role assigned in the system context. The Роль Модератор форума is an example of a role assigned in the module context. The Роль Родитель is an example of a role assigned in the user context.

Глобальные роли

Roles assigned in the site (1.7) or system context (1.8 onwards) are called global roles and apply across the entire site, including the front page. For example, a user assigned the global role of Teacher will have this role in every course on the site.

In many sites only admins and course creators will be assigned global roles.

The Демо-учитель Restricted user role is an example of a global role.

Назначение роли

"Student", "Teacher", "Course Creator" are some of the predefined roles that come with Moodle. The site administrator may have created additional roles.

  1. Choose the type of role you wish to assign. For example, if we wanted to assign a Student role to Martin, we'd choose "Student" from the list of roles.
  2. Once you have chosen a role, two lists appear: a list of users who currently have that role (Student Demo in the example), and a list of users who don't. We can select Martin in the second list, and use the left-facing arrow button to add Martin to the list of Students. Multiple users may be selected by holding down the Apple or Ctrl key whilst clicking on the users' names.
Ошибка создания миниатюры: Не удаётся сохранить эскиз по месту назначения
Assigning users the role of student i.e. enrolling them on the course

Removing some from a role is done by moving the user from the right column to the left.

Скрытые назначения

  • To hide which role a user is assigned to, click the Hidden assignments check box before assigning the role to the user.
  • This feature is useful for example if you don't want everyone with teacher rights listed in the course description.
  • Note: The role assignment is not hidden from admins or teachers i.e. users with the viewhiddenassigns capability.

Остерегайтесь назначений, которые не дадут эффекта

There are many role assignments that do not make sense as the underlying functionality does not exist. Just because you give someone the "right" to do something does not guarantee that the interface or facility actually exists within the context that you have assigned that right. For example, you can assign a user the right to create new categories at the Category context, however there is no interface within Moodle to do that (category creation is only available at the site level).

Множественные назначения

A significant part of the roles infrastructure is the ability to assign a user into multiple roles (at the same time). The capabilities of each role are merged to produce the effective set of capabilities. In particular it is perfectly possible for a user to be both a Teacher and Student in the same course. This differs from the behavior of Moodle prior to the introduction of roles. You should be careful to ensure that if you change a user's role that you remove them from any other roles as required as this will no longer be done automatically.

Смотрите также