File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -4459,7 +4459,14 @@ export class AdapterClass extends EventEmitter {
4459
4459
findForeignObject (
4460
4460
idOrName : string ,
4461
4461
type : ioBroker . CommonType | null ,
4462
- options : { user ?: `system.user.${string } `; language ?: ioBroker . Languages } ,
4462
+ options : {
4463
+ user ?: `system.user.${string } `;
4464
+ language ?: ioBroker . Languages ;
4465
+ /** This can be set to true to disable permission checks if they were already checked otherwise. Use it with caution! */
4466
+ checked ?: boolean ;
4467
+ /** Search only within the states, that belongs to this user */
4468
+ limitToOwnerRights ?: boolean ;
4469
+ } ,
4463
4470
callback : ioBroker . FindObjectCallback ,
4464
4471
) : void ;
4465
4472
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ export class Users {
334
334
if ( ! isExisting ) {
335
335
return tools . maybeCallbackWithError ( callback , `User "${ username } " does not exist.` ) ;
336
336
}
337
- // Check group
337
+ // Check a group
338
338
if ( ! password ) {
339
339
prompt . message = '' ;
340
340
prompt . delimiter = '' ;
@@ -356,7 +356,7 @@ export class Users {
356
356
} as const satisfies prompt . Schema ;
357
357
prompt . start ( ) ;
358
358
359
- prompt . get < SchemaPropsToString < typeof schema > > ( schema , ( err , result ) => {
359
+ prompt . get < SchemaPropsToString < typeof schema > > ( schema , ( _err : Error | null , result ) : void => {
360
360
if ( result ) {
361
361
if ( result . password !== result . repeatPassword ) {
362
362
return tools . maybeCallbackWithError ( callback , 'Passwords are not identical!' ) ;
You can’t perform that action at this time.
0 commit comments