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

參考資料: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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值