Fix logic inversion on testing user Monitors for camera access
parent
4814eaa2df
commit
bfaf8c8b53
|
@ -137,7 +137,7 @@ bool User::canAccess(int monitor_id) {
|
||||||
} // end foreach Group_Permission
|
} // end foreach Group_Permission
|
||||||
}
|
}
|
||||||
|
|
||||||
return (monitors == PERM_NONE);
|
return (monitors != PERM_NONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function to load a user from username and password
|
// Function to load a user from username and password
|
||||||
|
|
Loading…
Reference in New Issue