While adding Privileges to certain role, I made this walk through.
After compiling code and no error in privilege in model. Copied the Label. From GUI, We can search privileges with labels text.
Go systems Administration
Security form, For current example I add my custom privilege into “Employee” Role That is out of the box.
Now click on Privilege. And all privileges will start showing.
Now form top menu, you found another link or menu item, Add reference
Form next window, filter with privilege label name.
When select the required privilege, check mark on grid. And then click
After adding selected privilege, you find underline unpublished objects 1. Now click on “Publish all”.
Now your role is active with new changes.