Closed Taco55 closed 6 years ago
In addition, to the actual results described above. When the granted permission of user2
to user1
's Realm is revoked on user2
, the permissionRealm of user2
is correctly updated, but not for user1
.
Remaining permissions of user1 (id: d91f828965a3ad646f9240a42f9eb322) after revoke (incorrect):
Results<RLMSyncPermission> <0x7fbfe4f0ad70> (
[0] <RLMSyncPermission> identity: d91f828965a3ad646f9240a42f9eb322, path: /d91f828965a3ad646f9240a42f9eb322/permissiondemo, access level: admin,
[1] <RLMSyncPermission> identity: 3368977af096b70b2fcc4b31df02e9e5, path: /d91f828965a3ad646f9240a42f9eb322/permissiondemo, access level: write
)
Remaining permissions of user2 (id: 3368977af096b70b2fcc4b31df02e9e5) after revoke (correct):
Results<RLMSyncPermission> <0x7fbfe4f0bd90> (
[0] <RLMSyncPermission> identity: 3368977af096b70b2fcc4b31df02e9e5, path: /3368977af096b70b2fcc4b31df02e9e5/permissiondemo, access level: admin
)
Nevertheless, revoking the granted permissions of user1
directly on itself does not update the permissionRealm correctly as stated in the issue description.
@Taco55 Thanks for reporting this! We are currently enhancing the permissions system and will look into this.
Are there any updates on the permission system or are there any ideas when it will be enhanced?
I reported a closely related issue for the first time at 29 March 2017 (#160), more than a year ago, and it seems that not much has changed (at least on the client side)...
Closing this for now as it relates to an outdated version of ROS. The permission system has been totally revamped since then. Please reopen if the problem stil persists.
Goals
To revoke permissions of a specific realm and to determine the remaining permissions with
retrievePermissions
.This is a continuation of issue #244
Expected Results
To see the revoked permissions actually revoked.
Actual Results
Revoked permissions are still there when "remaining" permissions are retrieved using
retrievePermissions
Steps to Reproduce
AppDelegate.swift
user1
, password:user1
-- username:user2
, password:user2
user2
permission touser1
's Realm, 2) permissions ofuser1
anduser2
are retrieved; 3) the granted permission will be revoked; 4) the permissions ofuser1
anduser2
are retrieved again.Output will be:
After revoking the permission that was previously granted by user1 to user2, the permissions are still unchanged:
Code Sample
Version of Realm and Tooling