contacts-pane 2.6.4-4bae80de → 2.6.4-effc3572
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,9 +15,9 @@ export async function renderGroupMemberships (person, context) {
|
|
|
15
15
|
async function removeFromGroup (thing, group) {
|
|
16
16
|
const pname = kb.any(thing, ns.vcard('fn'))
|
|
17
17
|
const gname = kb.any(group, ns.vcard('fn'))
|
|
18
|
-
// find all
|
|
18
|
+
// find all WebIDs of thing
|
|
19
19
|
const thingwebids = kb.each(null, ns.owl('sameAs'), thing, group.doc())
|
|
20
|
-
//
|
|
20
|
+
// WebID can be deleted only if not used in another thing
|
|
21
21
|
let webids = []
|
|
22
22
|
thingwebids.map(webid => {
|
|
23
23
|
if (kb.any(webid, ns.owl('sameAs'), thing, group.doc()).length = 1 ) webids = webids.concat(webid)
|
|
@@ -66,7 +66,7 @@ export async function renderGroupMemberships (person, context) {
|
|
|
66
66
|
|
|
67
67
|
// find all documents where person ns.vcard('fn')
|
|
68
68
|
function syncGroupList () {
|
|
69
|
-
// to be changed
|
|
69
|
+
// person and/or WebIDs to be changed
|
|
70
70
|
// const groups = kb.each(null, ns.vcard('hasMember'), person)
|
|
71
71
|
const groups = kb.each(person, ns.vcard('fn'), undefined) // non il faut acceder a la liste des group.doc()
|
|
72
72
|
utils.syncTableToArray(groupList, groups, newRowForGroup)
|