Roles and permissions
What it does
Each admin role sees and does only the EasyQuote work you allow it. For example, sales staff can prepare quotes and send proposals while only a manager approves them. You set this up in System → Permissions → User Roles, on the Role Resources tab.
Before you start
- Your own admin role can edit roles in System → Permissions → User Roles.
- Know what each permission opens. Every EasyQuote permission is described on the Access list.
- If staff without Approve should ask a colleague to approve, turn on Enable Quote Approval Requests. See Approval requests for managers without the Approve permission.
Steps
Build a role for sales staff
This example role prepares quotes and answers requests, but can't approve quotes or delete anything.
-
Go to System → Permissions → User Roles.
-
Click Add New Role, or click the row of an existing role.
-
On the Role Info tab, in Role Name, enter a name, for example
Sales Staff. In Your Password, enter your own admin password. -
Click the Role Resources tab. In Resource Access, select Custom.
-
In the tree, under Sales → EasyQuote, select only these entries:
- Under Quotes → Actions: View, Create / Edit, Send Proposal and Export To PDF.
- Under Requests → Actions: View / Reply.
Don't select Quotes, Requests or Actions themselves. Selecting an entry also selects everything below it, including Approve and Delete. The entries above the ones you select are saved with the role as well.
-
Check that Approve, Cancel / Close, Delete, Create Order and Set Pending stay clear.
-
Click Save Role.
-
To give the role to a user, go to System → Permissions → All Users and click the user. Click the User Role tab, select the role and click Save User.
What the main entries open
- Quotes and Requests add the menu entries under Sales → EasyQuote. To open the grids, the role also needs View under Quotes or View / Reply under Requests.
- Each entry under Actions opens one group of buttons and mass actions. Create / Edit is the broadest one. It covers the quote editor, Duplicate, Send Email, the internal quote actions and Create Quote on a request or an order.
- EasyQuote under Stores → Settings → Configuration opens the EasyQuote settings and the Settings entry in the Sales → EasyQuote menu.
A role can have Requests without Quotes. Since EasyQuote 1.7.5, such a role sees the requests in the Requests grid and can answer them. Create Quote on the request page also needs Create / Edit under Quotes.
The full list, with every button each permission opens, is on the Access list.
Hidden buttons and blocked actions
A button or mass action the role can't use is hidden from the page. Hiding isn't the only lock. When an action runs, EasyQuote checks the permission again, so opening the action's address directly doesn't get around it. For example, Save & Approve checks Approve at the moment of the save.
Approve and Request Approval
Approve decides who can make a quote Approved. With it, the user gets Approve on the quote page, Save & Approve in the quote editor and the Approve mass action in the Quotes grid. See Approve a quote.
A user without Approve can ask someone else instead. Request Approval on the quote page and Save & Request Approval in the editor show when all four are true:
- The user's role doesn't have Approve.
- The role has Create / Edit.
- Enable Quote Approval Requests is Yes for the quote's store view.
- The quote is in a status that an approver could approve.
Request Approval emails the approvers and notes the request in the quote history. It doesn't change the quote's status. A user who has Approve never sees Request Approval. See Approval requests for managers without the Approve permission.
What you should see
Sign in as a user with the new role. Sales → EasyQuote shows Quotes and Requests, without Settings. On a quote page, Approve, Create Order and Cancel / Close don't show. The Quotes grid has no Actions menu, because each of its mass actions (Delete, Approve, Cancel and Set Pending) needs a permission this role doesn't have.
Limits
- Create Quote on an order also needs Magento's own permission to view orders.
- Integrations that read quotes or requests through the REST API use the same Quotes and Requests entries.
Troubleshooting
- A user sees the Quotes menu entry, but the grid doesn't open. The role has Quotes without View. Select View under Quotes → Actions.
- There is no Request Approval button. Check that the role lacks Approve and has Create / Edit, that Enable Quote Approval Requests is Yes for the quote's store view, and that the quote could be approved in its status.
- A button is missing for one user only. Check which role the user has on the User Role tab in System → Permissions → All Users.
What's next
- Access list: every EasyQuote permission and the buttons it opens.
- Approval requests for managers without the Approve permission: how a role without Approve asks for approval.
- Approve a quote: what the approver does next.
- Working with requests: what a role with View / Reply and Delete does with requests.