From 8603509e30ec505ec666797a1ae2c16ea7338ab2 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Mon, 5 May 2008 13:02:01 +0000 Subject: Fixed flaw in blog-tutorial's authentication rules. --- .../protected/pages/Day3/CreateEditUser.page | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'demos/blog-tutorial/protected/pages/Day3/CreateEditUser.page') diff --git a/demos/blog-tutorial/protected/pages/Day3/CreateEditUser.page b/demos/blog-tutorial/protected/pages/Day3/CreateEditUser.page index 78c345a3..6023450c 100644 --- a/demos/blog-tutorial/protected/pages/Day3/CreateEditUser.page +++ b/demos/blog-tutorial/protected/pages/Day3/CreateEditUser.page @@ -187,6 +187,23 @@ class EditUser extends TPage The onInit() method is invoked by PRADO during one of the page lifecycles. Other commonly overriden lifecycle methods include onPreInit(), onLoad() and onPreRender(). +

Adding Permission Check

+

+To make the EditUser page also accessible by authenticated users (users="@"), we need to adjust the page configuration file protected/pages/users/config.xml accordingly. +

+ + + + + + + + + + + + +

Testing

To test the EditUser page, visit the URL http://hostname/blog/index.php?page=users.EditUser&username=demo. You may be required to login first if you have not done so. Try logging in with different accounts (e.g. admin/demo, demo/demo) and see how the page displays differently. -- cgit v1.2.3