Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Create form element for roles #50

Open
Matthimatiker opened this issue Feb 10, 2013 · 1 comment
Open

Create form element for roles #50

Matthimatiker opened this issue Feb 10, 2013 · 1 comment

Comments

@Matthimatiker
Copy link
Owner

Create a form element that can be used to select a role.

The element should be able to build its selectable content from a Zend_Acl object.
It should be possible to add a filter which ensures that only assignable roles are displayed (based on ACL).
Another feature could be that the hierarchy of the roles is indicated.

@Matthimatiker
Copy link
Owner Author

The filter could be implemented via lambda function that indicates if an entry is accepted:

function ($role, Zend_Acl $acl) {
    // Decide if $role is available.
    return true;
};

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

No branches or pull requests

1 participant