Sabtu, 28 Desember 2013

Computer Programming : How to create new user role in drupal like Author

User Role

If you want to handle your website from different users then you should go for user role concept. Role is a function, which is declared for users. According to Drupal CMS
Roles allow you to fine tune the security and administration of Drupal. A role defines a group of users that have certain privileges as defined on the permissions page. Examples of roles include: anonymous user, authenticated user, moderator, administrator and so on. In this area you will define the names and order of the roles on your site. It is recommended to order your roles from least permissive (anonymous user) to most permissive (administrator). To delete a role choose "edit role".
By default, Drupal comes with two user roles:
•Anonymous user: this role is used for users that don't have a user account or that are not authenticated.
•Authenticated user: this role is automatically granted to all logged in users.

Lets take a simple example to understand how to add it in Drupal

Step-1 : Logged into your admin account.
Step-2 : Select 'People' tab from admin toolbar.
 
Administrator tool bar in drupal
 
 
Step-3 : Select Permissions tab (top right side) in appearing window.
Permission tab in drupal
 
 
Step-4 : Select role in appear new window (top right side bar).
Select role in appear new window (top right side bar).
 
 
Step-5 : Write role name in given textbox also click Add role button.
 
Add role in Drupal
 
Step-6 :  Click Save Order button.

Tidak ada komentar:

Posting Komentar