summaryrefslogtreecommitdiff
path: root/demos/blog/protected/Portlets/AccountPortlet.tpl
diff options
context:
space:
mode:
authorxue <>2006-05-30 03:30:14 +0000
committerxue <>2006-05-30 03:30:14 +0000
commit75f28186a995aa930f6db9f05ec7b63bbd2cd284 (patch)
tree9621a9db8c69daf951f87fb57996428d57d710a6 /demos/blog/protected/Portlets/AccountPortlet.tpl
parent2ea02214b2fb6bedb58dbbd318ef171a9e146524 (diff)
Merge from 3.0 branch till 1103
Diffstat (limited to 'demos/blog/protected/Portlets/AccountPortlet.tpl')
-rw-r--r--demos/blog/protected/Portlets/AccountPortlet.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/blog/protected/Portlets/AccountPortlet.tpl b/demos/blog/protected/Portlets/AccountPortlet.tpl
index 2a401f41..a55b7857 100644
--- a/demos/blog/protected/Portlets/AccountPortlet.tpl
+++ b/demos/blog/protected/Portlets/AccountPortlet.tpl
@@ -9,7 +9,7 @@ Welcome, <b><%= $this->User->Name %></b>!
<li><a href="<%= $this->Service->constructUrl('Posts.MyPost') %>">My post</a></li>
<li><a href="<%= $this->Service->constructUrl('Users.ViewUser',array('id'=>$this->User->ID)) %>">Profile</a></li>
<%%
-if($this->User->isInRole('admin'))
+if($this->User->IsAdmin)
echo '<li><a href="'.$this->Service->constructUrl('Admin.PostMan').'">Admin</a></li>';
%>
<li><com:TLinkButton Text="Logout" OnClick="logout" /></li>