On Sep 14, 2009, at 10:03 AM, Vincent Massol wrote:
Hi,
Wiki macros currently require programming rights and thus are
limited and in addition cannot be created in subwikis by the
majority of users.
Since I've now almost finished implementing component isolation I'd
like to agree on what we want for wiki macros.
Proposal:
* Modify the wiki macro class to add a "Visibility" field with 2
values:
- visible only in the current wiki
- visible to everyone
* Visible to everyone will require admin rights
* Make the macro available to a user only if that user has view
rights to the wiki macro page. This is to allow making a wiki macro
private (when testing for example). It also allows making a macro
visible only to a given group of users.
hmm... this one might be hard to implement. I need to think a bit more
about it. The pb is that when you look up a component you don't have a
way to know it's a wiki macro and thus get the macro document and
check if it's viewable by the current user...
-Vincent
Note: I considered having a "visible only to the current user" value
for the Visibility field but I don't think it means much since if
someone else edit the page and saves it, then suddenly the macro
becomes visible only to that person...
WDYT?
Thanks
-Vincent