• Eleni
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi, Im using the following code to override the Delete Button in a client's professional edition for accounts.  It works but I'm trying to add another user (extend this deleting privelege to the other System Admin).  Do you know how I can do this?? Thanks!

 

<apex:page action="{!if($User.Alias !='MPeck',
null,
urlFor($Action.Account.Delete, $CurrentPage.Parameters.id, [retURL='/001'], true)
)
}"
standardController="Account">
<apex:pageBlock >
<apex:PageMessage summary="You are not allowed to delete Accounts"
severity="Warning"
strength="3"/>
<apex:pageMessages />
</apex:pageBlock>
</apex:page>

  • February 13, 2013
  • Like
  • 0

Hi, Im using the following code to override the Delete Button in a client's professional edition for accounts.  It works but I'm trying to add another user (extend this deleting privelege to the other System Admin).  Do you know how I can do this?? Thanks!

 

<apex:page action="{!if($User.Alias !='MPeck',
null,
urlFor($Action.Account.Delete, $CurrentPage.Parameters.id, [retURL='/001'], true)
)
}"
standardController="Account">
<apex:pageBlock >
<apex:PageMessage summary="You are not allowed to delete Accounts"
severity="Warning"
strength="3"/>
<apex:pageMessages />
</apex:pageBlock>
</apex:page>

  • February 13, 2013
  • Like
  • 0