Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
$header(formurl,breadcrumbs,shortcuts)$

<h2>Authorisation failure</h2>

<p>
$if(user.authenticated)$
	You are currently signed in as $user.displayName$. You do not have the correct permission to complete this task.
$else$
	You are not currently signed in. You do not have permission to complete this task. Please <a href="$formurl$/signin">sign in</a> to continue.
$endif$
</p>

$if(defined(support_name))$
<p>
	If you don't have permission to complete this task. If you believe you should have permission
	to complete this task, please contact <a href="$support_url$">$support_name$</a> and mention
	this exact date and time: <i>$time$</i>.
</p>
$endif$

$if(details)$
<div class="info">
<p>You do not have permission to complete this task.</p>
<ul>
	<li><b>Time:</b> $time$</li>
	<li><b>URL:</b> $url$</li>
$if(first(referer))$	<li><b>Referrer:</b> $referer$</li>$endif$
$if(first(permission.command))$
	<li>
		<b>Privilege:</b> <i>$permission.command$</i>
$if(first(permission.role))$ expects user to have role <i>$permission.role$</i>$endif$
$if(first(permission.resource))$ for resource <i>$first.resource$$if(defined(permission.uid))$($permission.uid$)$endif$</i>$endif$
	</li>
$endif$
$if(first(permission.message))$	<li><b>Message:</b> $permission.message$</li>$endif$
	<li><b>Token:</b> $token$</li>
$if(first(user_roles))$	<li><b>Roles:</b><ul class="chevron">$user_roles:{rl|<li>$rl$</li>}$</ul></li>$endif$
</ul>
</div>
$endif$

$footer()$
New to GrepCode? Check out our FAQ X