Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

View file
nameInvalid file id - 9923402c-253a-4cf9-b3af-749c7fd009b8

Overview

In this lesson, we are going to create new roles inside the Project project and we will discover the relationship between the roles and the menu items that we created under development. Let’s review take a look on how this connection works and the impact that will provide in our application .

How to

...

associate Roles on Menu items?

After creating menu items in the previous lesson, we noticed that there is an Admin role created by default and associated to the project. . If we focus on Roles section and click on “Quantity Items” column, a popup is displayed on the screen with all the menu items listed (this popup is similar to the Menu dashboard) with every destination page and conditions/parameters established and the corresponding order in the Project.

...

But what What happens if we don’t need every user to see all the menu items and pages related? For this purpose, the app gives application give us the ability to to create new roles.

Click on “Add Roles” button under the Menu dashboard.

...

A popup is displayed to create this new role on the project.

...

Again, we need to put a role’s description (Name) and the destination’s page for that new role. In the example, we can search by the same page previously linked to our “Wayfast Menu” new menu item. Then click on “Save” button.

...

We need to keep in mind that having a new Role but it doesn’t mean that we have any user assigned Users. To Let’s verify that the app is working as expected, we .

We can quickly remove our user from Admin role and reassign to “Wayfast New Role” “Tech_Lead” role recently created.

Click on “Quantity Users” link for Admin and then click on “Add User” button

...

A popup is displayed with our username populated. Removing Let’s remove the user on this role and clicking click on “Accept” button, . Now we are able to setup the user into the new role.

Repeat the steps, click on Quantity Users “Quantity Users” link (into the “New Role” row) and click on “Add User” button.

...

A new popup is displayed, it’s retrieving the information from the user logged on Wayfast. Click on “Submit” button and this user will be linked to the new role.

...

We can see the updated value in the corresponding role .After finishing with this settings, we can after saving the changes. Now we need to associate the new role to the menu item . Click as final step. For this purpose, click on “Quantity Items” link and a popup will display the related menu items. Click on “Add items” button and then assign which menu items should be visible for this role.

...

If we want to verify that the role for our user is updated, let’s return to the Project project’s application site and refresh the page. After this, we can check that the right assignation is available.

Can

...

Users have Multiple Roles?

Today Wayfast is supporting only one role per user registered on the Project. If we add a user that is already assigned to a role the app will check any previous assignation and it will display an error message.

...

Recap

We In this lesson, we learnt at project level, how we can create roles and define permissions in terms of development. It’s important to establish from the beginning what roles can see or not what is being created, especially in those cases where the security is complex and there are different departments working on the same application. In next lessons, we can learn how Wayfast allows us the possibility to establish multiple conditions and parameters that make this parent-child logic more complex and accurate to our system’s needs.