In the Role Demo sample, we will create a convenient user interface for managing roles.
You can access the role management page by logging in as
firstname.lastname@example.org opening menu Admin -> Manage Roles.
The role management will be implemented inside the
RoleController controller living in the
User\Controller namespace. The action methods of the
RoleController are listed in table 17.4:
||Allows to add a new role.|
||Deletes an existing role.|
||Allows to edit an existing role.|
||Allows to assign permissions to a role.|
||Displays the list of existing roles.|
||Displays the details of a role.|
RoleController works in pair with the
RoleManager service which lives in
RoleManager contain nothing new and special, so we will skip their
discussion here and will just provide some screenshots of the resulting user interface below.
You can find the complete code of the
RoleManagerclasses in the Role Demo sample.