Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom ACL resource and configure permissions #3948

Closed
nowiko opened this issue Jan 29, 2016 · 6 comments
Closed

Add custom ACL resource and configure permissions #3948

nowiko opened this issue Jan 29, 2016 · 6 comments
Labels

Comments

@nowiko
Copy link

nowiko commented Jan 29, 2016

Hello, I created custom controller class and want to apply access restriction on it. So according to Akeneo documentation I defined appropriate ACL. Then I wanted to restrict it for some role, so I went to 'System/ Users Management/ Roles' and it is not visible on tab 'Permissions'. So I tried to figure out how existing permissions list is included to UI.

I provided some research, and found it to be complicated. I found that it is related to following configuration:

oro_user:
    privileges:
        action:
            label: rights.action
            view_type: groups
            types: [action]
            field_type: pim_acl_access_level_selector
            default_value: 5
            show_default: true

And it is used by Oro\Bundle\SecurityBundle\Form\Type\PrivilegeCollectionType, but I can't find place where all ACL resources are collected for displaying. Or have I omitted something? Could you please clarify a little bit more about how it is working?

Regards, Victor.

@nowiko
Copy link
Author

nowiko commented Feb 1, 2016

So, I figured out how to add ACL's have them to manage on permissions tab (though Akeneo documentation doesn't consist this information). But it still unclear how Akeneo handle acl.yml and UI gets this data.

Could you please clarify this?

Regards, Victor.

@juliensnz
Copy link
Contributor

juliensnz commented Apr 28, 2016

Hello,

This feature is provided by the ORO platform. That's why it's not explained in our documentation. Do you find this module important ? Maybe we can work on documentation proposition

About the page generation, to be 100% transparent with you, this is the only page in Akeneo I have no Idea how it is generated. So if you have time to dig into it, don't hesitate !

Best regards,

Julien

@nowiko
Copy link
Author

nowiko commented May 4, 2016

Hello @juliensnz ,

Do you find this module important ?

Yes, I think this module is important

That's why it's not explained in our documentation. Maybe we can work on documentation proposition

I suppose this part of documentation is in 'Nice to have' category, not in 'Necessary'.

So if you have time to dig into it, don't hesitate !

If I have a free time I will investigate generation process.

Regards, Viktor.

@nowiko
Copy link
Author

nowiko commented Oct 3, 2017

I consider this issue-question as not relevant anymore, so mark it as Closed.

@nowiko nowiko closed this as completed Oct 3, 2017
@volkovmqx
Copy link

would you share how did you manage to make it appear on the roles management tab ?

@volkovmqx
Copy link

Just to share the knoweledge, Akeneo cache:clear command didnt remove the oro folders from app/cache/dev, i had to remove them manually and then the new roles pop up in the backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants