kr
Hi,
I have a closed wiki (no open registration) and I´m figuring out how to implement the following functionality:
I'd like to setup users(groups) that would be able to register(delete) users in their allowed namespaces.
For example, I have a group called editors with read/write permissions in the namespace :wiki:contents. I´d like to allow editors group do add or delete new users in :wiki:contents.
Any idea what is the best way to implement that??
Use ACL information in a new plugin??
Change admin script and implement new ACL restrictions??
Thanks.
falkor
I think that might be a little bit difficult.
As you might have noticed, you have to be admin to add new users. You'd have to circumvent several of the restrictions in place.
Since there isn't even an event when a user is registered (this you'd have to add on your own, and hence branch off the official dokuwiki -- not recommended), it is difficult to intercept and set the new user to a specific group based on the editor that registered the user (given that you can even get around the user-registration issue). If you can get around this restriction, you could easily set the right restrictions to let new users of an editor only have rw-access to a specific namespace.
I'd probably solve it in a combination of an admin (managers allowed - the editors have to be managers) plugin and action plugins. You still have to get around the user registration problem - probably an ugly hack in an admin plugin, as you want to limit what field a manager can set on the user - e.g. not allowed to set groups, or at the very least check that the group he adds the user to are allowed. It will very quickly become quite complex.
I prefer the "keep it simple stupid"-tactic.
//Falkor
xbelanch
Hi,
I have the same problem. I manage a space with a multiple users. Each user have his/her namespace. They can edit his namespace but not the others namespace. I think it would be possible one user can invite to a certain pages n-users to work in a collaborative way. I'm thinking in two ways to solve it.
a. One button (Invite) to show a looks similar to the ACL admin.
b. One expression at the top of the page, like {{edit: user1, user2, user3, user, 4}}
Any idea?
Thanks,
Xavier