Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
[SimpleAcl] Nested roles?
  • Is is possible for SimpleAcl to progress nested roles?
    'roles' => array(
     'user' => array(
      'products' => array(
       'read',
       'edit' => array(
        'product_properties',
        'product_quantity'
       )
      ),
     ),
     'moderator' => array(
      'products' => array(
       'read',
       'edit' => array(
        'product_properties',
        'product_materials',
        'product_quantity',
       )
      ),
     ),
    )
    
    as you see, I want to modify accesses in edit page. How can I make this possible?
  • No, currently you can't. The code uses in_array() to check, so it can't deal with nested definitions.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion