improve error message. The unrecognized action error happens above, so this error should just mention permissions
This commit is contained in:
parent
b3c6382e6c
commit
6084e2d00f
|
@ -1,5 +1,4 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define( "MSG_TIMEOUT", 2.0 );
|
define( "MSG_TIMEOUT", 2.0 );
|
||||||
define( "MSG_DATA_SIZE", 4+256 );
|
define( "MSG_DATA_SIZE", 4+256 );
|
||||||
|
|
||||||
|
@ -35,8 +34,7 @@ if ( canEdit( 'Monitors' ) )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ajaxResponse( exec( escapeshellcmd( $zmuCommand ) ) );
|
ajaxResponse( exec( escapeshellcmd( $zmuCommand ) ) );
|
||||||
|
} else {
|
||||||
|
ajaxError( 'Insufficient permissions' );
|
||||||
}
|
}
|
||||||
|
|
||||||
ajaxError( 'Unrecognised action or insufficient permissions' );
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue