Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-3) was last changed on 17-Jul-2005 17:04 by OlafKock  

This page was created on 04-Dec-2003 12:44 by Killer

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 24 added 17 lines
And a fix for the same problem in RecentChangesPlugin:
{{{
--- ../../JSPWiki/src/com/ecyrd/jspwiki/plugin/RecentChangesPlugin.java 2003-12-04 12:44:11.000000000 +0200
+++ src/com/ecyrd/jspwiki/plugin/RecentChangesPlugin.java 2003-12-04 15:01:14.000000000 +0200
@@ -100,6 +100,11 @@
Date lastmod = pageref.getLastModified();
+ if( ! context.getEngine().getAuthorizationManager().checkPermission(pageref, context.getCurrentUser(), "view") )
+ {
+ break;
+ }
+
if( lastmod.before( sincedate.getTime() ) )
{
break;
}}}
Version Date Modified Size Author Changes ... Change note
3 17-Jul-2005 17:04 1.839 kB OlafKock to previous
2 04-Dec-2003 15:07 1.622 kB Killer to previous | to last
1 04-Dec-2003 12:44 0.876 kB Killer to last
« This page (revision-3) was last changed on 17-Jul-2005 17:04 by OlafKock