improve error message. The unrecognized action error happens above, so this error should just mention permissions

This commit is contained in:
Isaac Connor 2016-05-16 14:38:40 -04:00
parent b3c6382e6c
commit 6084e2d00f
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
<?php
define( "MSG_TIMEOUT", 2.0 );
define( "MSG_DATA_SIZE", 4+256 );
@ -35,8 +34,7 @@ if ( canEdit( 'Monitors' ) )
}
}
ajaxResponse( exec( escapeshellcmd( $zmuCommand ) ) );
} else {
ajaxError( 'Insufficient permissions' );
}
ajaxError( 'Unrecognised action or insufficient permissions' );
?>