Okay
  Public Ticket #2867178
Amelia Manager permissions
Closed

Comments

  •  1
    numerica started the conversation

    Hello

    Because of a business requirement, we have limited the ability of Amelia Manager role, so it cannot edit Employees. We have done so with a very simple plugin which's code is like this:

    $role->remove_cap('amelia_write_employees');

    This is working fine. However, the problem is that when this plugin is active, Amelia Manager cannot edit or create Clients either.

    Menus and buttons are visible, but when trying to open them, it gets stuck in the message "Please wait..." and never opens up.

    I have tried explicitly allowing the amelia_read_customers and amelia_write_customers capabilites, to no avail

    We're not limiting the capability amelia_read_employees either, which would be necessary according to this ticket https://tmsplugins.ticksy.com/ticket/2860567/

    So i think this is a bug. Can yo please give me a hand?

    Thank you very much.

  • [deleted] replied

    Hi, Numerica,

    Thank you for choosing Amelia.

    Just to clarify your request: you want to remove only one permission, so your Managers won't be able to edit Employees, is that correct?

    The rest of the permissions should remain the same?

    PS The ticket that you are referring to has a different aim: this user, Adam, wanted to extend Amelia Employee Role permissions, and it's easier to achieve than removing the permissions that are assigned to the Role by default.

    Best Regards. 

  •  1
    numerica replied

    Hi Liza, thanks for replying

    That's right, the business requirement is to remove that permission only, so that Amelia Managers cannot edit Employees. The rest should remain the same.

    Do you have an idea how can that be acheived?

    Best regards

  • [deleted] replied

    Numerica,

    Thank you for the clarification.

    I have to forward your request to our Level 2 Support. Probably, they will be able to find a way to achieve that.

    We will get back to you at the earliest possible time.

    Best Regards. 

  •  1
    numerica replied

    Ok Liza, thank you. I'd appreciate if you can escalate the issue.

  • [deleted] replied

    Numerica,

    Donesmile.png

    My colleague will contact you at the beginning of the next week since our Level 2 Support and our dev team don't work on weekends.

    Best Regards. 

  •  1
    numerica replied

    Hello. I have read and understood the notice on this website, so first of all i would like to wish you good health, may we all overcome this situation globally.

    However, i have to insist in this issue. Two weeks have passed and my customer is still waiting for a solution.

    As you said it's easier to give an Employee capabilities, rather than limiting the Manager, i wonder if it would be a good idea to do exactly that: giving the Employee role all the Manager's capabilities except the one we need to remove?

    Better if it could be done on a separate role, "cloned" from Employee.
    Does this make any sense? Could you tell me what this capabilities are and how to do it?

    Could Leve 2 support do it if not?

    Please help me

  •  1
    numerica replied

    I found the answer, it was just to limit the capabilities called amelia_read_other_employees and amelia_write_other_employees instead

    i'm available for hire. just joking

  • [deleted] replied

    Hi there!

    Thank you so much for your kind reply, and kind words; we wish you a good health as well, and safety in these times.

    I'm happy to hear that you have found a solutionsmile.png

    If you have any further questions or issues, please feel free to open a new ticket, and we'll gladly help.

  •  3
    Temper replied

    @numerica ..."As you said it's easier to give an Employee capabilities, rather than limiting the Manager, i wonder if it would be a good idea to do exactly that: giving the Employee role all the Manager's capabilities except the one we need to remove?"

    Did you ever try that idea?

  •  2,572
    Aleksandar replied

    Hello Temper

    Users in Amelia were created with these limitations and even though we do advise modifying those capabilities for certain use cases, this approach may cause other issues with the plugin.

    It's never a good idea to modify user roles if they affect multiple users, so editing employee's capabilities would potentially give them too much power (so to speak). If you want to try this approach, please do, but I would rather leave it at limiting the manager from editing employees if that's what you're after.

    Kind Regards, 

    Aleksandar Vuković
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables