You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2006/10/15 01:24:16 UTC

svn commit: r464053 - /incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java

Author: ehillenius
Date: Sat Oct 14 16:24:14 2006
New Revision: 464053

URL: http://svn.apache.org/viewvc?view=rev&rev=464053
Log:
include page itself in auth check

Modified:
    incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java

Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java?view=diff&rev=464053&r1=464052&r2=464053
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/Page.java Sat Oct 14 16:24:14 2006
@@ -390,6 +390,10 @@
 		// or negative as a temporary boolean in the components, and when a
 		// authorization exception is thrown it will block the rendering of this
 		// page
+
+		// first the page itself
+		setRenderAllowed(isActionAuthorized(RENDER));
+		// children of the page
 		visitChildren(new IVisitor()
 		{
 			public Object component(final Component component)