Skip to content
Snippets Groups Projects
Commit a5f8df1f authored by ko_oler's avatar ko_oler
Browse files

fix

parent f3205e27
Branches
Tags
No related merge requests found
...@@ -77,7 +77,7 @@ func (r Rule) WithWriteFilter(f string) *Rule { ...@@ -77,7 +77,7 @@ func (r Rule) WithWriteFilter(f string) *Rule {
} }
} }
func (r Rule) WithDenyWriteFields(f string) *Rule { func (r Rule) WithReadWriteFilter(f string) *Rule {
return &Rule{ return &Rule{
CollectionID: r.CollectionID, CollectionID: r.CollectionID,
Actions: append([]Action(nil), r.Actions...), Actions: append([]Action(nil), r.Actions...),
...@@ -90,7 +90,7 @@ func (r Rule) WithDenyWriteFields(f string) *Rule { ...@@ -90,7 +90,7 @@ func (r Rule) WithDenyWriteFields(f string) *Rule {
} }
} }
func (r Rule) WithDenyReadFields(ff ...string) *Rule { func (r Rule) WithReadonlyFields(ff ...string) *Rule {
return &Rule{ return &Rule{
CollectionID: r.CollectionID, CollectionID: r.CollectionID,
Actions: append([]Action(nil), r.Actions...), Actions: append([]Action(nil), r.Actions...),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment