See
function devel_generate_content_add_node(&$results) {
There is a $users = $results['users'];
which contains the "wrong users".
You could hack out the users there, or make sure they are not added in the first place.
That happens in
function devel_get_users() {
$users = array();
$result = db_query_range("SELECT uid FROM {users}", 0, 50);
while($user = db_fetch_object($result)){
$users[] = $user->uid;
}
return $users;
}
You would need to modify that method, to make it return only users whith certain permissions. You can omit the incorrect users in the while loop; using node access.
However, this devel_get_users routine is called for other things too, so you probably want to achieve all this in either a new method devel_get_permissioned_users($perm)
or by introducing an optional argument.