「カスタムロールの作成」の版間の差分

提供:MoodleDocs
移動先:案内検索
58行目: 58行目:
新しいロールはコース説明に一覧表示されている教師ロールのようなロールからのコピーだとしても、自動的にコース説明に表示されるわけではありません。コース一覧に新しいロールを表示したい場合、あなたは「管理 > サイト管理 > アピアランス > コース > コース連絡先」で明確に設定する必要があります。
新しいロールはコース説明に一覧表示されている教師ロールのようなロールからのコピーだとしても、自動的にコース説明に表示されるわけではありません。コース一覧に新しいロールを表示したい場合、あなたは「管理 > サイト管理 > アピアランス > コース > コース連絡先」で明確に設定する必要があります。


==Testing a new role==
==新しいロールをテストする Testing a new role==
''Administration > Switch role to''
''Administration > Switch role to''
Use the "Switch role to" link to see what another role will see in that context.   
Use the "Switch role to" link to see what another role will see in that context.   

2016年2月17日 (水) 15:05時点における版

作成中です - Mitsuhiro Yoshida (トーク)

新しいロールの作成

カスタムロールを作成するには:

  1. 「管理 > サイト管理 > ユーザ > パーミッション > ロールを定義する」にアクセスしてください。
  2. 「ロールを追加する」ボタンをクリックしてください。
  3. 新しいロールにテンプレートを選択するか、プリセットをアップロードしてください。
  4. 例えば「親」のようにロール省略名を設定してください。ロールを参照する必要があるため、省略名はModle内の他のプラグインに必要です (例えばファイルからユーザをアップロードする場合、登録プラグイン経由で設定する場合)。
  5. あなたはすべてのカスタムロールにフルネームを提供する必要があります。ロールに複数言語で名称を付けたい場合、あなたは多言語シンタックスを使用することができます。
  6. ロール説明を入力してください (任意)。
  7. 適切なロールアーキタイプを選択してください (詳細情報は下記をご覧ください)。
  8. ロールが割り当てられるコンテクストを選択してください。例) 親ロールの「User」
  9. 必要に応じて、パーミッションを設定してください。
  10. ページの最上部または最下部に移動して、「このロールを作成する」ボタンをクリックしてください。


新しいロールを追加してコンテクストタイプを設定する
必要に応じて「許可」を選択する
「拡張要素を表示する」オプションを有効にした場合の追加オプション

ロールアーキタイプ

ロールアーキタイプは

  • ハードコードされたロールのテンプレートです。
  • アップグレード中に新しいケイパビリティのデフォルトを追加する時に使用されます - アーキタイプなし = アップグレード中に新しいケイパビリティはありません。
  • ロールリセット時のデフォルト決定に使用されます - アーキタイプなし = リセットによりケイパビリティすべてが削除されます。

オーバーライドに使用するカスタムロール、またはシステム管理者がアップグレード後に新しいケイパビリティを手動で設定したい場合、ロールアーキタイプを設定する必要はありません。

内臓されたロールに直接関わるアーキタイプは次のとおりです:

  • マネージャ (manager)
  • コース作成者 (coursecreator)
  • 編集権限のある教師 (editingteacher)
  • 教師 (teacher)
  • ゲスト (guest)
  • ユーザ (user)
  • フロントページ (frontpage)

複製ロールの作成

複製ロールを作成するには:

  1. 「管理 > サイト管理 > ユーザ > パーミッション > ロールを定義する」に移動してください。
  2. 「新しいロールを追加する」ボタンをクリックしてください。
  3. テンプレートとして既存のロールを選択してください。
  4. あなたの新しいロールのためにロール名を入力して、パーミッションを設定してください。スクロールダウンして「このロールを作成する」をクリックしてください。

新しいロールに関する考察

新しいロールはコース説明に一覧表示されている教師ロールのようなロールからのコピーだとしても、自動的にコース説明に表示されるわけではありません。コース一覧に新しいロールを表示したい場合、あなたは「管理 > サイト管理 > アピアランス > コース > コース連絡先」で明確に設定する必要があります。

新しいロールをテストする Testing a new role

Administration > Switch role to Use the "Switch role to" link to see what another role will see in that context.

Since switching roles confines you to those roles you can assign in a course context, this method is only useful for testing course-scoped capabilities (i.e. it will not be useful for testing permissions that apply outside the course context, like moodle/user:edit).

Tip: You can always create test user and assign the new role to them. Then logout as admin and login as the test user. This is really the best way to test a new role.

Example custom roles

  • Parent - for providing parents/mentors/tutors with permission to view certain information about their children/mentees/tutees
  • Demo teacher - for providing a demonstration teacher account with a password which can't be changed
  • Forum moderator - for providing a user with permission in a particular forum to edit or delete forum posts, split discussions and move discussions to other forums
  • Forum poster role - a highly restricted custom role which may be given to a visitor account to enable them to post in forums in a guest access course.
  • Calendar editor - for enabling a user to add site or course events to the calendar
  • Blogger - for limiting blogging to specific users only
  • Quiz user with unlimited time - for allowing a user unlimited time to attempt a quiz which has a time limit set
  • Question creator - for enabling students to create questions for use in quizzes
  • Question sharer - for allowing teachers to share questions between courses
  • Course requester role - for restricting users who can make course requests
  • Feedback template creator - for allowing teachers to save as "Public" a Feedback template.
  • Grading forms publisher for allowing teachers to share Advanced grading forms with others
  • Grading forms manager for allowing teachers to share Advanced grading forms with others and to delete templates others have created.
  • Grade viewer for allowing users to view but not edit grades.
  • Gallery owner role - may be used to provide editing capabilities (add and edit gallery images) to users on individual Lightbox Galleries.
  • Course tagger - for allowing users other than managers and editing teachers to tag courses.

Uploading users to a system role

Where certain custom roles are applied in the system context, it is possible to upload users to that role in bulk by adding the field sysrole1 (etc) to the CSV file

関連情報

Using Moodle forum discussions: