Fix demo mode for API
This commit is contained in:
parent
3ec2419086
commit
b6ab6a806e
@ -16,7 +16,7 @@ function handle404() {
|
||||
}
|
||||
|
||||
function globalBefore() {
|
||||
if (defined('HESK_DEMO') && $_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
if (defined('HESK_DEMO') && $_SERVER['REQUEST_METHOD'] !== 'GET') {
|
||||
print_error('Demo Mode', 'Only read-only commands are available in demo mode!', null, 401);
|
||||
die();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user