include user and function error message about insufficient permissions. Will make it easier to figure out who tried what.
This commit is contained in:
parent
9f8fc65cd3
commit
9893d37bf1
|
@ -486,7 +486,7 @@ int main(int argc, char *argv[]) {
|
||||||
exit_zmu(-1);
|
exit_zmu(-1);
|
||||||
}
|
}
|
||||||
if ( !ValidateAccess(user, mon_id, function) ) {
|
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);
|
exit_zmu(-1);
|
||||||
}
|
}
|
||||||
} // end if auth
|
} // end if auth
|
||||||
|
|
Loading…
Reference in New Issue