# propertyhive/1.4.55/templates/account/invalid-access.php

Property Hive, version 1.4.55. 16 lines.

- Page: https://pluginprobe.com/plugins/propertyhive/1.4.55/code/templates/account/invalid-access.php
- Raw: https://pluginprobe.com/plugins/propertyhive/1.4.55/raw/templates/account/invalid-access.php
- Modified: 2017-05-22T15:22:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/propertyhive/1.4.55/code/templates/account/invalid-access.php#L10-L20`.

```php
<?php
/**
 * Displayed when a user is trying to access a page they shouldn't be (i.e. when trying to view 'My Account' but they're not logged in)
 *
 * Override this template by copying it to yourtheme/propertyhive/account/invalid-access.php.
 *
 * @author 		PropertyHive
 * @package 	PropertyHive/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
?>
<p class="propertyhive-info"><?php 
	_e( 'You must be logged in to view this.', 'propertyhive' ); 
?></p>
```
