Reviewing Permissions

It’s helpful to learn a little about permissions, including how to grant authority to people for doing things on the site.

To investigate permissions, log into the Drupal site, and click on the “People” link at the top:

Then on the next screen, click the Permissions tab:

There’s some basic information (which I recommend reading), and then a series of columns: Anonymous User, Authenticated User, and Administrator (see Figure 7.2).

Figure 7.2. Various types of users in the People section.


Basically, what this allows you to do is to grant permissions to various kinds of users and to adjust as necessary. As with other settings, Drupal makes some educated guesses about default settings, but it’s still helpful to know the capability is here, and to understand how to change them.

For example, if you scroll down, you’ll see that the default settings allow an Authenticated User to view and post comments (see Figure 7.3). This means that if you allow people to register on the site, or for any users you create, they can comment on articles. An anonymous user (not logged in—any visitor, in other words) can only view comments.

Figure 7.3. Permission.


Now, try scrolling down to the Node section (see Figure 7.4). A node is Drupal’s way of referring to a part of the website. And this column shows how both Anonymous and Authenticated users can view published content. You could change the settings so that neither could view content (if you wanted to have a private site, for example).

Figure 7.4. An example of telling Drupal who can do a certain thing when they log in.


Further on down is another area worth being familiar with. In this area, you can see that Authenticated Users are not able to create content or edit content. You could change that if you like (see Figure 7.5).

Figure 7.5. Additional permissions.


After adjusting any settings, click the Save permissions button:

Roles

Drupal also allows you to create additional roles. For example, say you want to have a role of “writer”—where the writers can create/edit content, but you don’t want authenticated users (for example, community members) to be able to create or edit new articles. So you could create a new role and adjust the permissions accordingly. And when you create a new user, you can assign it that role. Like you could register a friend, and set that person to be a “writer.” To explore, under the Permissions tab (which is in the People area), click the Roles button.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.189.157