- Drupal for Education and E/Learning
- Bill Fitzgerald
- 356字
- 2021-05-28 17:43:26
Understanding Roles, and Assigning Rights
The default Drupal installation comes with two standard roles: anonymous user and authenticated user. The anonymous user is used for any non-members visiting the site, and anonymous users generally have limited rights on a site used for a learning environment. All site members belong to the authenticated user role; consequently, any permission granted to the authenticated user role is given to every site member. In Chapter 2, we assigned privileges to the authenticated user role. As discussed in Chapter 4, the rights assigned to user roles are cumulative; therefore, if a single user is assigned to multiple roles, that user has the accumulated permissions of all roles.
On small sites, some site administrators use the authenticated user role to assign permissions to students. From a technical perspective, this will work, but creating a specific student role (as we did in Chapter 3) provides an additional level of security and flexibility. Later in this chapter we will assign specific rights to the student role.
We will leave the authenticated user role with relatively few rights, and assign more rights to the student role. When working with students under the age of 18, this added level of security can be reassuring to concerned parents. The practice of assigning limited rights to the authenticated user role means that even if someone outside of the course creates an account on the site, they still won't have the ability to do anything until their account has been vetted and approved by a site administrator.
Additionally, as the site grows, it can be useful to use roles to organize users into groups. As an example, let's examine the possibility of inviting parents into the site. If the authenticated user role was being used to control the access rights of students, then all parents would be able to behave exactly like students within the site. By using a separate student role and leaving the authenticated user role untouched, parents can be given a different set of rights than their children.
Unfortunately, Drupal's access rules cannot be similarly extended to govern parent behavior in the brick and mortar classroom.
- TensorFlow與自然語(yǔ)言處理應(yīng)用
- 像攝影師一樣調(diào)色
- CorelDRAW服裝設(shè)計(jì)實(shí)用教程(第四版)
- 中文版Rhino 5.0完全自學(xué)教程(第3版)
- IT Inventory and Resource Management with OCS Inventory NG 1.02
- 計(jì)算機(jī)圖形圖像處理Photoshop CS6項(xiàng)目教程
- Photoshop網(wǎng)店美工實(shí)例教程(第2版 全彩微課版)
- PowerPoint 2013從新手到高手(超值版)
- 中文版Dreamweaver基礎(chǔ)培訓(xùn)教程
- 中文版Flash CS6動(dòng)畫制作(慕課版)
- Python 3 Object Oriented Programming
- 數(shù)碼攝影后期密碼Photoshop CC調(diào)色秘籍(第2版)
- Refactoring with Microsoft Visual Studio 2010
- 從零開(kāi)始:Indesign CC 2019設(shè)計(jì)基礎(chǔ)+商業(yè)設(shè)計(jì)實(shí)戰(zhàn)
- 剪映專業(yè)版:短視頻創(chuàng)作案例教程(全彩慕課版)