Skip to Content
author's profile photo Former Member
Former Member

i need disappear the log off shorcut for some users?

Hi, i need disappear the log off shorcut for some users?

Somebody can help me?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 17, 2004 at 10:21 AM

    Hi,

    hope you need help with EP6

    somewhere in the <u>com.sap.portal.navigation.masthead</u> component you can find the HeaderIview.jsp. Just find the code where the logoff link is created. You should find something like this:

    <i>

    <%

    if (isAnonymous)

    {%>

    <hbj:link id="LoginLink" tooltip="<%=logInTooltipStr%>" linkDesign="FUNCTION" reference="javascript:logIn();"><hbj:textView text="<%=logInTextStr%>"/></hbj:link></TD>

    <%}

    else

    {%>

    <hbj:link id="LogoffLink" tooltip="<%=logOffTooltipStr%>" linkDesign="FUNCTION" reference="javascript:openLogoffMsg();"><hbj:textView text="<%=logOffTextStr%>"/></hbj:link></TD>

    <hbj:link id="LoginLink" tooltip="<%=logInTooltipStr%>" linkDesign="FUNCTION" reference="javascript:logoff2();"><hbj:textView text="<%=logInTextStr%>"/></hbj:link></TD>

    <%}%></i>

    and somewhere above this code there is:

    <i>

    boolean isAnonymous = false;

    IUserContext userContext = componentRequest.getUser();

    if (userContext != null)

    {

    IGroup anonGroup = UMFactory.getGroupFactory().getGroupByUniqueName(IGroupFactory.ANONYMOUS_USERS);

    isAnonymous = userContext.isMemberOfGroup(anonGroup.getUniqueID(), true);

    }</i>

    Change it so it suits your needs.

    Hope it helps

    Romano

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.