From 2bca07bb15976494b95d41761292f44ffc9f7dc9 Mon Sep 17 00:00:00 2001
From: ko_oler <kooler89@gmail.com>
Date: Tue, 26 Dec 2023 14:36:12 +0300
Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?=
 =?UTF-8?q?=D0=BD=D1=8B=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?=
 =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9=20=D0=B4=D0=BB=D1=8F=20Rules?=
 =?UTF-8?q?=20=D0=B8=20Colletions.Acess?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 proto/collections/collections.proto | 6 ++++--
 proto/common/common.proto           | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/proto/collections/collections.proto b/proto/collections/collections.proto
index 970ac99..f6601d8 100644
--- a/proto/collections/collections.proto
+++ b/proto/collections/collections.proto
@@ -11,8 +11,10 @@ package content.collections;
 message Access {
   repeated common.Action actions = 1;
   repeated string hidden_fields = 5;
-  repeated string deny_read_fields = 6;
-  repeated string deny_write_fields = 7;
+  repeated string readonly_fields = 6;
+  repeated string writeonly_fields = 7;
+  repeated string deny_read_fields = 8;
+  repeated string deny_write_fields = 9;
 }
 
 message Collection {
diff --git a/proto/common/common.proto b/proto/common/common.proto
index d68468a..edee74c 100644
--- a/proto/common/common.proto
+++ b/proto/common/common.proto
@@ -40,10 +40,12 @@ message Rule {
   repeated Action actions = 2;
   Access access = 3;
   repeated string hidden_fields = 5;
-  repeated string deny_read_fields = 6;
-  repeated string deny_write_fields = 7;
+  repeated string readonly_fields = 6;
+  repeated string writeonly_fields = 7;
   string read_filter = 8;
   string write_filter = 9;
+  repeated string deny_read_fields = 10;
+  repeated string deny_write_fields = 11;
 }
 
 message Collaborator {
-- 
GitLab