Giter VIP home page Giter VIP logo

cooptilleulsaclsonataadminextensionbundle's People

Contributors

aitboudad avatar azjezz avatar bitdeli-chef avatar dunglas avatar meyerbaptiste avatar sroze avatar vedro-compota avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cooptilleulsaclsonataadminextensionbundle's Issues

Symfony 3 compability?

I try to install it with Symfony 3.2 but can't. It wants Sonata 2.2 and Symfony 3 wants Sonata 3.x

Symfony 2.4

The line:

"symfony/symfony": ">=2.2,<2.4-dev",

doesn't allow me use this bundle. Is this bundle compatible with Symfony 2.4?

custom id doesn't work

i have a table with id different from usual "id", let's say i call the field table_id

well, it's not compatible with the bundle because in file CoopTilleuls\Bundle\AclSonataAdminExtensionBundle\Admin\AclAdminExtension line 99 you wrote :
->andWhere('o.id IN (:ids)')

it triggers a Doctrine Exception since my table with alias "o" has no field called id

fixed it temporary with
->andWhere('o IN (:ids)')

works fine :)

hope i'll get a proper fix next update

PermissionMap and MaskBuilder hardcoded.

MaskBuilder masks are hardcoded here.

Also, masks used to determine if the VIEW permission is granted are usually determined with the PermissionMap.

However, since the masks are hardcoded, the permission map is ignored.

I will open a PR to fix this.

Update Composer

Please update the composer.json to support Sonata Admin 3.x

Thanks in advance.

Command "sonata:admin:explain" cause a fatal error / Security context

Hi,

With this bundle, the Sonata command line "sonata:admin:explain" cause a fatal error (Security context is not available through command line) :

PHP Fatal error:  Call to a member function getUser() on a non-object in /Users/fabien/Workspaces/Sites/sandbox.dev/vendor/tilleuls/acl-sonata-admin-extension-bundle/CoopTilleuls/Bundle/AclSonataAdminExtensionBundle/Admin/AclAdminExtension.php on line 50

May be a simple patch like this can solve the issue :

https://gist.github.com/FabienD/8221873

Regards,
Fabien

EDITOR role not working

Hello, I am trying to use this bundle but it just hides ALL the items from the list except the items created by the owner, what am I doing wrong?

config.yml

sonata_admin:
    security:
        handler: sonata.admin.security.handler.acl

        role_admin: ROLE_ADMIN
        role_super_admin: ROLE_SUPER_ADMIN

        # acl security information
        information:
            GUEST:    [VIEW, LIST]
            STAFF:    [EDIT, LIST, CREATE]
            EDITOR:   [OPERATOR, EXPORT]
            ADMIN:    [MASTER]

        # permissions not related to an object instance and also to be available when objects do not exist
        # the DELETE admin permission means the user is allowed to batch delete objects
        admin_permissions: [CREATE, LIST, DELETE, UNDELETE, EXPORT, OPERATOR, MASTER]

        # permission related to the objects
        object_permissions: [VIEW, EDIT, DELETE, UNDELETE, OPERATOR, MASTER, OWNER]

security.yml

security:
    role_hierarchy:
        ROLE_ADMIN:
            - ROLE_USER
            - ROLE_SONATA_ADMIN
            - ROLE_APP_ADMIN_PRODUCT_FAMILY_EDITOR
            - ROLE_APP_ADMIN_PRODUCT_EDITOR
        ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
        #SONATA:
            #- ROLE_SONATA_PAGE_ADMIN_PAGE_EDIT  # if you are using acl then this line must be commented

    # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
    providers:
        fos_userbundle:
            id: fos_user.user_provider.username

When I log in as a ROLE_ADMIN I see the product family list empty except for the items I created myself.

Thanks.

AclSonataAdmin and Inheritance

I have a bundle like the SonataProductBundle where in the sandbox "Travels" and "Goodies" entities have the "Product" entity as parent. When I enable the AclSonataAdminExtension and go to the ProductAdmin, I have an empty list of Products (even if I am OWNER of a list of sub-entities Travels & Goodies for example) because the Acl is managed at the entity level I guess.

Is there a way to avoid this ?

Filter child entity from parent ACL

I every one,

First thanks for sharing this awesome bundle !

I have and idea for enhance the code : filter child entity from parent ACL (optionnal).

Exemple an application with 2 tables (Category and Product) a user who have OPERATOR ACL access to a specific category can view only the products of this category.

I will try to do this but if somebody have some good ideas ?

My problem is i don't know how i can make it optionnal (how i can param it) and how i can specify wich parent entity to choose for filtering.

If i success to code it i will send it tou you for merge.

Bye

Can't get it working

I'm using symfony 2.2.11 and sonatadminbundle 2.2, I thinks it is not the last version, this is the return from composer show -i

sonata-project/admin-bundle dev-master be78c78 Symfony SonataAdminBundle

When I run to ACL option I don't get any filters in the users list. I've add the entry in composer.json, updated it and add the entry in AppKernel with the cache clear, but still without any filters in acl user list. What can I do?

Maybe is something related to my Postgresql connection...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.