File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -365,6 +365,8 @@ acl_sharing_map {
365
365
}
366
366
}
367
367
368
+ acl_dict_index = yes
369
+
368
370
dict_server {
369
371
dict acl {
370
372
driver = sql
@@ -391,6 +393,19 @@ dict_server {
391
393
}
392
394
}
393
395
396
+ dict_map shared/shared-user-boxes-rev/$from/$to {
397
+ sql_table = user_shares
398
+ value_field dummy {
399
+ }
400
+
401
+ key_field from_user {
402
+ value = $from
403
+ }
404
+ key_field to_user {
405
+ value = $to
406
+ }
407
+ }
408
+
394
409
dict_map shared/shared-boxes/anyone/$from {
395
410
sql_table = anyone_shares
396
411
value_field dummy {
@@ -413,8 +428,8 @@ CREATE TABLE user_shares (
413
428
);
414
429
COMMENT ON TABLE user_shares IS 'User from_user shares folders to user to_user.';
415
430
416
- CREATE INDEX to_user
417
- ON user_shares (to_user ); -- because we always search for to_user
431
+ CREATE INDEX user_shares_from_user
432
+ ON user_shares (from_user ); -- because we search for from_user when rebuilding ACLs
418
433
419
434
CREATE TABLE anyone_shares (
420
435
from_user varchar(100) not null,
You can’t perform that action at this time.
0 commit comments