include user and function error message about insufficient permissions. Will make it easier to figure out who tried what.

This commit is contained in:
Isaac Connor 2021-12-14 12:26:26 -05:00
parent 9f8fc65cd3
commit 9893d37bf1
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ int main(int argc, char *argv[]) {
exit_zmu(-1);
}
if ( !ValidateAccess(user, mon_id, function) ) {
Error("Insufficient privileges for requested action");
Error("Insufficient privileges for user %s for requested function %x", username, function);
exit_zmu(-1);
}
} // end if auth