Assign fuctionalities to Roles

By default, WorkWithPlus creates a program in order to manage Roles and its associated functionalities (by applying WorkWithPlus pattern to transaction SecRole). This program is http://<DIR_APPLICATION>/wwsecrole.aspx. (For accessing this program user must enter with a user that has permissions, so must be logged in).

AssignFunctionalitiesToRolesImg01

If you click in the link 'Functionalities' of the Role, you will be able to configure for that Role which functionalities are enabled and which aren't. For example, we click in Rol Upd: 

AssignFunctionalitiesToRolesImg02

These are the functionalities of the application, the ones that are checked are the ones that users that have assigned this role will have access to. Each functionality has a Key, Description, Type and Parent Functionality.

ParentFunctionality will have value only when a functionality has type 'action', 'tab', or 'Mode'. The value of this functionality will be the object functionality that contains it. But the security is not hierarchical. In other words, if you grant permission to an object in this role and want to grant permission to all actions within the object, you will have to check every action of it. In order to make this process easier is that you have an option (magnifying glass action) where shows for that functionality its children. For example, in CompanyWW the children are:

AssignFunctionalitiesToRolesImg03

In the case of functionality CompanyWW , the children functionalities are the modes CompanyWW_Delete , CompanyWW_Update and CompanyWW_Insert. At this time, role 'Rol Upd' has access to enter to all the objects that has associated WWCountry functionality, but it will not be able to execute a deletion, insertion or update of registries of Country. In order to grant this permission, should check in the modes that want to allow to that user.