Getting started with the permissions of the starstar News Module

Source: Internet
Author: User

(1) Quick Start to the permissions of the starstar News Module

The portal system is a CMS system (Demo http://demo.dotnetcms.org/portal) designed for internal use of enterprises ). The news module supports permission inheritance. This also allows a news class to be inherited from the page by default.

So, how do I set page permissions? When we add a page in the background, you can see that the system selects everyone by default, which is accessible to anyone on this page.

 

 

 

After a page is added, the News Module is added. Next, you can add news categories. For example, you can add news from the IT department of the Ministry of Information Technology of the People's Republic of China. You can see that permissions for each category can be refined.

 

The starstar system manages news through two-level permission control.

 

 

(2) demonstration of a complete and more common practice in an Enterprise

Generally, enterprise news is only accessible to internal employees, that is, users who need to log in. The news of each department is maintained and updated by the Department staff. Next, we will introduce how to use starstar to implement this function. 【There are actually two requirements here (a) all login accounts can view (B) the maintenance of the Department's news staff]

 

(1) Add the page and select authenticated. This is a built-in role of the system. any user who successfully logs on to the page will belong to this role (authenticated indicates that the identity is verified .)

 

 

 

(2) Add the news module to the page. Click "module configuration" to add the News Module "news ".

 

 

 

(3) When adding a module, (although the system has a left middle right panel, but currently, there is no difference, and it is similar to any panel ).

 

 

(3) Editing and viewing pages

(4) Click Preview to view the page. Next, click"Edit page"To enter the editing mode.

 

 

 

(5) At this time, you can see "category settings". After clicking, you can add two news categories: "Personnel Department News" and "IT department News"

 

 

 

(6) Next, we need to set the permissions. To this end, we will pause the news and add a role. To facilitate later maintenance, I added two custom roles "HR" and "it" in "role management" in the background ".

 

 

The purpose of adding a user-defined role is to set the permission for modifying the news category of the Ministry of Personnel to HR and the permission for modifying the IT news category to it. In this way, in theory, the Personnel Department manages the news of the Department by themselves, and the IT department staff maintains the news of the IT department by themselves.

 

 

(7) Now, click the "category setting permission" link after the Ministry of Personnel news.

At this point, we can see that the read permission user or role is empty. Do you remember what we said when we added the page before? The category read permission is inherited by default from the page tab. Although it is null, it actually inherits authenticatedRole.

 

 

The read permission of News cannot be revoked. It can only be modified by the Administrator on the background page. For example, click permission configuration to modify the read permission of the news class.

 

 

(8) Next, set the news modification permission. Refer to set a role group.

 

 

(9) after setting the role, you can see that the HR role can modify the Personnel Department news, and the role attribute is group.

 

 

 

In addition, if someone, such as IT dream, does not want to give him the HR role, but wants dream, he can also modify the HR department news. In this case, he can select a user and add him separately..

 

 

Now, users with HR roles can modify news. which users can modify news? Therefore, we need to add the HR role to the user.

(10) Next, go to the background, in user management, and click "role" to add the HR role to the ECO. Then, log on to the ECO and modify the news.

 

 

The preceding permissions can be summarized as follows:

Set a HR user-defined role, set the HR department news permission to HR, and then add the HR role to the ECO user. Naturally, you can log on to ECO to maintain and update news.

Add the IT role to it news in the same way.

(11) Click Add news connection to add news

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.