- 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.
- Procreate繪畫創(chuàng)作從入門到精通
- Mastering phpMyAdmin 3.3.x for Effective MySQL Management
- Word 2010實(shí)戰(zhàn)技巧精粹
- Illustrator平面設(shè)計(jì)立體化教程:Illustrator 2021(微課版)
- Procreate+ SketchUp +Photoshop建筑設(shè)計(jì)手繪表現(xiàn)技法
- Final Cut Pro短視頻剪輯入門教程
- Google App Engine Java and GWT Application Development
- The PEAR Installer Manifesto
- Vue.js快速入門
- 中文版Maya 2014基礎(chǔ)培訓(xùn)教程
- 零基礎(chǔ)學(xué)Premiere Pro短視頻制作
- 攝影師的后期必修課(RAW格式篇)
- Photoshop 2020實(shí)戰(zhàn)從入門到精通(超值版)
- OpenCms 7 Development
- 中文版SolidWorks 2016完全實(shí)戰(zhàn)技術(shù)手冊(cè)