This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Guys, I'm working on this plugin: https://github.com/leocavalcante/oc-backendusertree
I want to hear some feedback and if possible, some PRs. It's my first step to a main goal of Multitenancy in October.
I was not able to make Backend\Models\User
use SimpleTree
trait, there is a way? That's why there is this Proxy
.
Another question, that maybe is more a feature request, is to choose want permissions users should be able to define for their children.
Last updated
Unfortunately this is a limitation of PHP that traits cannot be implemented dynamically at run time. This is partly why October introduces Behaviors/Extensions, it might be possible for you to convert the SimpleTree trait to a behavior and implement it dynamically to the $implement
property.
Thanks for the hint. I thought about that, I will remain with the proxy so the plugin won't make any side-effects to the backend_users
structure. I made an Extension that applied to the User makes the proxy almost invisible.
And about the:
leocavalcante said: Choose what permissions users should be able to define for their children.
I made a superset of PermissionEditor
that filters permissions
1-3 of 3