| Author |
How do I differentiate between an admin user within default.jsp
|
|
|
| I want to make the toolbar (My Portal, Administartion etc) available only to Admin users - how would I differentiate between different types of users. Ideally I would like to to do
<wps:if admin="yes">
...
</wps:if>
in default.jsp
| |
|
| wps:if admin="yes">
...
<<wps:if>>
This bit was missing from the above post.
| |
| Maik Weber 2005-07-26, 8:01 am |
| Well, this is not possible directly.
You can use the Userid indirectly for such a problem.
If the userid starts with admin, then ...
You get the userid by
<%@ page import="com.ibm.wps.engine.RunData" %>
....
RunData rd = RunData.from(request);
String userid = rd.getUser().getUserID();
....
Maik
kkhanz@uk.ibm.com wrote:
> wps:if admin="yes">
> ..
> <<wps:if>>
>
> This bit was missing from the above post.
|
|
|
|