コースリクエストロール

提供:MoodleDocs
2018年2月11日 (日) 15:01時点におけるMitsuhiro Yoshida (トーク | 投稿記録)による版 (→‎Role assignment)
移動先:案内検索


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

コースリクエストロールではコースをリクエストするユーザを制限することができます (恐らく、教師のみ) 。The role of Course requester may be used to restrict users who can make course requests, perhaps to teachers only.

コースをリクエストできるようケイパビリティを削除する

デフォルトでは認証済みユーザすべてコースの作成をリクエストすることができます。これを変更するには:

  1. 「管理 > ユーザ > パーミッション > ロールを定義する」にアクセスしてください。
  2. 認証済みユーザロールを編集してケイパビリティ moodle/course:requestを許可から未設定に変更してください。
  3. ページ下部 (または上部) にスクロールして「変更を保存する」ボタンをクリックしてください。

ロール設定

  1. 「管理 > ユーザ > パーミッション > ロールを定義する」にアクセスしてください。
  2. 「新しいロールを追加する」ボタンをクリックしてください。
  3. ロール名 (例 コースリクエスタ)、省略名および説明を入力してください。
  4. 「このロールが割り当てられるコンテクストタイプ」のチェックボックス「システム」をチェックしてください。
  5. ケイパビリティ「 moodle/course:request 」を許可にしてください。
  6. 「このロールを作成する」ボタンをクリックしてください。

注意: システムロールとして割り当てる必要があるため、単に教師のケイパビリティロールを変更するのではなく、新しいロールを作成すべきです (一般的に教師ロールはコースまたはコースカテゴリコンテンツに割り当てられます)。

ロールの割り当て Role assignment

  1. Access Administration > Users > Permissions > Assign system roles.
  2. 「管理 > サイト管理 > ユーザ > パーミッション > システムロールを割り当てる」にアクセスしてください。Access Administration > Users > Permissions > Assign system roles.
  3. Choose the course requester role to assign.
  4. Select one or more users in the Potential users list, and use the left-facing arrow button to add it to the Existing users list. If you want all your institution's teachers to be able to make course requests, you need to select and add all their names to the Existing users list.

Add a Course Request block

Now, this will work fine for those users who already have a Teacher role in at least ONE course on your Moodle site. When they log in, they will see the list of course(s) that they are enrolled in as Teacher(s) plus an All courses button. Clicking on that All courses button will show the complete list of courses on the site, plus a Request a course button, which they will be able to click to request a course.

However, those Moodle site users whom we have assigned to the Course requester role in System and who do not yet have a Teacher role in at least ONE course on your Moodle site will not see that All courses button, since by default all the available courses will be displayed. And consequently, the Request a course button will not appear to them. To solve this, a further step is required, viz. creating an HTML block on the front page with a direct link to /course/request.php! And of course that block will have to be made invisible to students etc.

  1. On the front page add a block: HTML: title: Course request contents: Click here to request a course with a link to <yourmoodlesite>/course/request.php
  2. Click the 'Assign roles' link and then in the administration block click the permissions link and edit the permissions so that only users with a Course requester or Teacher role will be able to view that block; students etc. won't see it.

Now Course requesters who are not yet enrolled as Teachers in Courses will be able to see that HTML block, click on the link and request a course. Of course, this block is redundant for those Course requesters who are also Teachers, but it is needed for Teachers requesting the creation of their very first course on the Moodle site.

関連情報