OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Security Best practice to verify if a user is ADMIN

This topic contains 2 replies, has 2 voices, and was last updated by  Rodolfo 7 years, 8 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
  • #35491


    Hi there!

    I’m creating a feature here that the user will be able to modify a custom value. I got this solution from Symfony code methods.. but I’m not sure if this is the best way to do this in OroCRM. What do you guys think? Can I use this or there is a better solution?

    Thank you!


Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #35492

    Dima Soroka

    Hi Rodolfo

    I would recommend to introduce an ACL resource for this purpose and assign the permission to proper role.

    What is your use case for admin role verification?



    Hi @dima

    I’m creating an extension to provide two-factor-authentication to OroCRM. Only the Admin user or the own user will be able to set up this feature.

    I’ll read more about the ACL. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroPlatform – Security’ is closed to new topics and replies.

Back to top