3 // Accepts a serialized room or backbone model for a room
4 function getBackendForRoom(room
) {
5 let backend
= (room
.get && room
.get('backend')) || room
.backend
;
6 // When the room security descriptor is referencing the group, use that security descriptor instead
7 if (backend
&& backend
.type
=== 'GROUP') {
8 const group
= (room
.get && room
.get('group')) || room
.group
;
9 backend
= group
.backedBy
;
15 function getLinkPathCond(type
, object
) {
16 var backend
= (object
.get && object
.get('backend')) || object
.backend
;
18 if (backend
.type
=== type
) return backend
.linkPath
;