0
点赞
收藏
分享

微信扫一扫

關閉Moodle的個人專用檔案空間private files area

七公子706 2022-02-23 阅读 65
经验分享

參考資料:https://docs.moodle.org/311/en/Private_files

moodle給每個用戶提供一個個人專用檔案空間,老師、學生存檔都非常方便。但是在測驗考試期間就變成了漏洞,怎麼將其臨時隱藏或關閉起來呢?

該功能對應的權限是:moodle/user:manageownfiles 和 repository/user:view

學生對應的角色是 student,將其moodle/user:manageownfilesrepository/user:view兩個權限禁用

 

Preventing access to Private files

If you don't wish to use private files on your site, you can prevent access as follows:

  1. Log in as an admin and go to Site administration > Plugins > Repositories > Manage repositories and disable the Private files repository.
  2. Go to Site administration > Users > Permissions > Define Roles and edit the authenticated user role.
  3. Unset the capabilities moodle/user:manageownfiles and repository/user:view and save changes.

If you want teachers to be able to access private files but not students, then in addition to the above steps

  1. Go to Site administration > Users > Permissions > Define Roles and create a new role to be assigned in the system context.
  2. Allow the capabilities moodle/user:manageownfiles and repository/user:view and save changes.
  3. Assign teachers this new role as a system role.
举报
0 条评论