Split employee devices from DeviceConnection
viewer.enrolledDevices shared DeviceConnection with the admin org list, so totalCount had to authorize with both employee-device:list and device:list. Mirror EmployeeDocumentConnection: a dedicated EmployeeDeviceConnection without totalCount, and keep DeviceConnection.totalCount for the org fleet only. Cover assumed-session device:get IDOR in e2e. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -30,7 +30,7 @@ type Viewer {
|
||||
last: Int
|
||||
before: CursorKey
|
||||
orderBy: DeviceOrder
|
||||
): DeviceConnection! @goField(forceResolver: true)
|
||||
): EmployeeDeviceConnection! @goField(forceResolver: true)
|
||||
|
||||
# Own-device read for self-enrollment status polling before org assumption.
|
||||
enrolledDevice(id: ID!): Device @goField(forceResolver: true)
|
||||
|
||||
Reference in New Issue
Block a user