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 fe72fd83f8
commit cca7953856
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,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