You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/security/share/core.go
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ package share
6
6
7
7
import (
8
8
"fmt"
9
+
9
10
"infini.sh/framework/core/orm"
10
11
)
11
12
@@ -18,11 +19,15 @@ type SharingRecord struct {
18
19
ResourceIsFolderbool`json:"resource_is_folder,omitempty" elastic_mapping:"resource_is_folder:{type:boolean}"`//eg: the resource is a folder, means we are sharing a folder
19
20
PathPatternstring`json:"path_pattern,omitempty" elastic_mapping:"path_pattern:{type:keyword}"`// e.g., "/documents/*" for wildcards
20
21
Recursivebool`json:"recursive,omitempty" elastic_mapping:"recursive:{type:boolean}"`// Apply to sub-paths
21
-
InheritedFromstring`json:"inherited_from,omitempty" elastic_mapping:"inherited_from:{type:keyword}"`// Parent share ID
22
+
InheritedTypestring`json:"inherited_type,omitempty" elastic_mapping:"inherited_type:{type:keyword}"`// Inherited type
23
+
InheritedFromstring`json:"inherited_from,omitempty" elastic_mapping:"inherited_from:{type:keyword}"`// Inherited from ID
22
24
InheritedFromFolderstring`json:"inherited_from_folder,omitempty" elastic_mapping:"inherited_from_folder:{type:keyword}"`// Parent share ID
23
25
Viastring`json:"via,omitempty" elastic_mapping:"via:{type:keyword}"`// via: direct / inherit
0 commit comments