[英]Is there a way to set permissions for a "reference" Realm, using full sync?
Since Realm is no longer recommending query-based sync
( https://docs.realm.io/sync/using-synced-realms/choosing-your-sync-type#query-based-sync ), I've decided to switch to full sync
and now I'm facing a problem with the user permissions.由于 Realm 不再推荐query-based sync
( https://docs.realm.io/sync/using-synced-realms/choosing-your-sync-type#query-based-sync ),我决定切换full sync
,现在我面临用户权限问题。 I can't set them, by using User.applyPermissions(...)
, since the realms are already of reference type
.我无法通过使用User.applyPermissions(...)
来设置它们,因为领域已经是reference type
。
Here are my questions:以下是我的问题:
Is there a way/workaround to set Realm User permissions to a reference type
realm, when I'm using full sync
?当我使用full sync
时,有没有办法/解决方法将领域用户权限设置为reference type
领域? User.applyPermissions(...)
( https://docs.realm.io/sync/using-synced-realms/access-control/path-level-permissions#granting-permissions ) doesn't seem to work with reference type
realm. User.applyPermissions(...)
( https://docs.realm.io/sync/using-synced-realms/access-control/path-level-permissions#granting-permissions ) 似乎不适用于reference type
领域。 I've tested with a different full type
realm and it worked fine.我已经用不同的full type
领域进行了测试,它运行良好。
Is it possible to convert a reference type
to full type
?是否可以将reference type
转换为full type
?
The other option I can think of, would be to re-create the realms as full type
with different names and copy the data over.我能想到的另一个选择是使用不同的名称将领域重新创建为full type
并复制数据。
留下这个以防万一有人遇到这个问题 - 重新创建完整的领域并复制你的数据,似乎没有办法解决它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.