# supportcandy/2.3.1/includes/admin/tickets/create_ticket/create_ticket.php

SupportCandy – AI Customer Support Ticket System &amp; Live Chatbot Agent, version 2.3.1. 15 lines.

- Page: https://pluginprobe.com/plugins/supportcandy/2.3.1/code/includes/admin/tickets/create_ticket/create_ticket.php
- Raw: https://pluginprobe.com/plugins/supportcandy/2.3.1/raw/includes/admin/tickets/create_ticket/create_ticket.php
- Modified: 2022-07-21T08:20:56+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/supportcandy/2.3.1/code/includes/admin/tickets/create_ticket/create_ticket.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

global $current_user;
$wpsc_allow_to_create_ticket = get_option('wpsc_allow_to_create_ticket');

if ( $current_user->ID || in_array('guest', $wpsc_allow_to_create_ticket)) {
  include WPSC_ABSPATH . 'includes/admin/tickets/create_ticket/load_create_ticket.php';
	
} else {
  include WPSC_ABSPATH . 'includes/admin/tickets/sign_in/sign_in.php';
}

```
