@@ -154,6 +154,7 @@ def test_models_documents_get_abilities_forbidden(
154
154
"accesses_view" : False ,
155
155
"ai_transform" : False ,
156
156
"ai_translate" : False ,
157
+ "ancestors_links_definitions" : {},
157
158
"attachment_upload" : False ,
158
159
"children_create" : False ,
159
160
"children_list" : False ,
@@ -214,6 +215,7 @@ def test_models_documents_get_abilities_reader(
214
215
"accesses_view" : False ,
215
216
"ai_transform" : False ,
216
217
"ai_translate" : False ,
218
+ "ancestors_links_definitions" : {},
217
219
"attachment_upload" : False ,
218
220
"children_create" : False ,
219
221
"children_list" : True ,
@@ -250,7 +252,7 @@ def test_models_documents_get_abilities_reader(
250
252
assert all (
251
253
value is False
252
254
for key , value in document .get_abilities (user ).items ()
253
- if key != "link_select_options"
255
+ if key not in [ "link_select_options" , "ancestors_links_definitions" ]
254
256
)
255
257
256
258
@@ -276,6 +278,7 @@ def test_models_documents_get_abilities_editor(
276
278
"accesses_view" : False ,
277
279
"ai_transform" : is_authenticated ,
278
280
"ai_translate" : is_authenticated ,
281
+ "ancestors_links_definitions" : {},
279
282
"attachment_upload" : True ,
280
283
"children_create" : is_authenticated ,
281
284
"children_list" : True ,
@@ -311,7 +314,7 @@ def test_models_documents_get_abilities_editor(
311
314
assert all (
312
315
value is False
313
316
for key , value in document .get_abilities (user ).items ()
314
- if key != "link_select_options"
317
+ if key not in [ "link_select_options" , "ancestors_links_definitions" ]
315
318
)
316
319
317
320
@@ -327,6 +330,7 @@ def test_models_documents_get_abilities_owner(django_assert_num_queries):
327
330
"accesses_view" : True ,
328
331
"ai_transform" : True ,
329
332
"ai_translate" : True ,
333
+ "ancestors_links_definitions" : {},
330
334
"attachment_upload" : True ,
331
335
"children_create" : True ,
332
336
"children_list" : True ,
@@ -375,6 +379,7 @@ def test_models_documents_get_abilities_administrator(django_assert_num_queries)
375
379
"accesses_view" : True ,
376
380
"ai_transform" : True ,
377
381
"ai_translate" : True ,
382
+ "ancestors_links_definitions" : {},
378
383
"attachment_upload" : True ,
379
384
"children_create" : True ,
380
385
"children_list" : True ,
@@ -410,7 +415,7 @@ def test_models_documents_get_abilities_administrator(django_assert_num_queries)
410
415
assert all (
411
416
value is False
412
417
for key , value in document .get_abilities (user ).items ()
413
- if key != "link_select_options"
418
+ if key not in [ "link_select_options" , "ancestors_links_definitions" ]
414
419
)
415
420
416
421
@@ -426,6 +431,7 @@ def test_models_documents_get_abilities_editor_user(django_assert_num_queries):
426
431
"accesses_view" : True ,
427
432
"ai_transform" : True ,
428
433
"ai_translate" : True ,
434
+ "ancestors_links_definitions" : {},
429
435
"attachment_upload" : True ,
430
436
"children_create" : True ,
431
437
"children_list" : True ,
@@ -461,7 +467,7 @@ def test_models_documents_get_abilities_editor_user(django_assert_num_queries):
461
467
assert all (
462
468
value is False
463
469
for key , value in document .get_abilities (user ).items ()
464
- if key != "link_select_options"
470
+ if key not in [ "link_select_options" , "ancestors_links_definitions" ]
465
471
)
466
472
467
473
@@ -484,6 +490,7 @@ def test_models_documents_get_abilities_reader_user(
484
490
# You should not access AI if it's restricted to users with specific access
485
491
"ai_transform" : access_from_link and ai_access_setting != "restricted" ,
486
492
"ai_translate" : access_from_link and ai_access_setting != "restricted" ,
493
+ "ancestors_links_definitions" : {},
487
494
"attachment_upload" : access_from_link ,
488
495
"children_create" : access_from_link ,
489
496
"children_list" : True ,
@@ -521,7 +528,7 @@ def test_models_documents_get_abilities_reader_user(
521
528
assert all (
522
529
value is False
523
530
for key , value in document .get_abilities (user ).items ()
524
- if key != "link_select_options"
531
+ if key not in [ "link_select_options" , "ancestors_links_definitions" ]
525
532
)
526
533
527
534
@@ -540,6 +547,7 @@ def test_models_documents_get_abilities_preset_role(django_assert_num_queries):
540
547
"accesses_view" : True ,
541
548
"ai_transform" : False ,
542
549
"ai_translate" : False ,
550
+ "ancestors_links_definitions" : {},
543
551
"attachment_upload" : False ,
544
552
"children_create" : False ,
545
553
"children_list" : True ,
0 commit comments