Jump to content

Question

Posted

Hi,

I want to create staff users for my Sales People, but I only want them to see the clients they have sold a product to, I do not want them to see accounts of clients that are not theirs. I thought I could achieve this by creating different "Client Groups" and assign in the staff area only the group they can see. How can I configure something like this? Is it possible?
Thanks, 
Gabriel

3 answers to this question

Recommended Posts

  • 0
Posted

To add to what Jono said, the permission system is generalized to entire resources (e.g. /clients/). If you give staff access to clients, they can see all clients. There is currently no mechanism to limit staff to access only certain clients based on some criteria. However, if you create a plugin, you can setup plugin events that listen for an event like the AppController.preAction event that is called when someone views a page, and your plugin can perform logic to determine whether this is a staff user and whether they are viewing an appropriate client they have access to or not, and redirect them elsewhere if necessary.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...