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