[xwiki-users] Restricting Images
Josef Pfleger
green-carrot at orange-cactus.org
Wed Jan 9 22:47:22 CET 2008
> You can extend/override the
> com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl class and register
> it in xwiki.cfg, so that you can add the upload right. Now, if you
> extend XWikiRightsServiceImpl, you won't need to separate the
> attachments from the targeted documents.
I have extended the com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl
class to support an 'attachment' level and used the
xwiki.authentication.rightsclass parameter in xwiki.cfg. That works,
thank you!
The only /ugly/ part remaining is my patched
com.xpn.xwiki.render.macro.ImageMacro. Is there another way to prevent
users from using external image urls?
More information about the users
mailing list