UAPI Question
in the UAPI custom function tutorial it is given that :
# Make the function unusable if the cPanel account is in demo mode.
if ( $Cpanel::CPDATA{'DEMO'} ) {
$result->error( '_ERROR_DEMO_MODE', $feature );
return;
}
how can I allow only root to use the json api?
Please sign in to leave a comment.
Comments
0 comments