You need to sign in to do that
Don't have an account?
Hera Soherwardy
<apex:page action="{!if($User.Alias !='user1' && $User.Alias != 'user2' ,
null,
urlFor($Action.Event.Delete, $CurrentPage.Parameters.id, [retURL='/00T'], true) ) }"
standardController="Event">
<apex:pageBlock >
<apex:PageMessage summary="You are not allowed to delete Events" severity="Warning" strength="3"/>
<apex:pageMessages /> </apex:pageBlock> </apex:page>
I want to prevent certain users from deleting events. This is not allowing anyone but an admin to delete
<apex:page action="{!if($User.Alias !='user1' && $User.Alias != 'user2' ,
null,
urlFor($Action.Event.Delete, $CurrentPage.Parameters.id, [retURL='/00T'], true) ) }"
standardController="Event">
<apex:pageBlock >
<apex:PageMessage summary="You are not allowed to delete Events" severity="Warning" strength="3"/>
<apex:pageMessages /> </apex:pageBlock> </apex:page>